-
-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deal with sequence of scale and drag actions #933
Comments
reproduce stepPrerequisite<template>
<VueMoveable
ref="moveable"
:target="targets"
:resizeable="true"
:draggable="true"
:scalable="true"
:snappable="true"
:snap-gap="true"
:snap-digit="0"
:is-display-snap-digit="true"
:snap-threshold="5"
:keep-ratio="false"
:element-guidelines="targets.map((_, i) => `.target${i}`)"
:snap-directions="{
top: true,
right: true,
bottom: true,
left: true,
}"
:element-snap-directions="{
top: true,
right: true,
bottom: true,
left: true,
}"
@scale="onScale"
/>
</template>
<script lang="ts">
export default defineComponent({
setup() {
const targets = []
const onScale = (event: OnScale) => {
console.log(event)
}
return {
targets,
onScale
}
}
})
</script>
2023-05-31.9.43.20.mov |
Is there an address I can test on? It is difficult to reproduce the cause of the problem. Also I will return a transform object from the onRender(e) {
e.transformObject.translate,
e.transformObject.scale,
} |
daybrush
added a commit
that referenced
this issue
Jun 2, 2023
moveable's new version is released. onRender(e) {
e.transformObject.translate,
e.transformObject.scale,
} You can use the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environments
Description
I would like to move and scale in succession similar to this issue.
I would like to use translate without using helper, how can I get the 'translate[]' and 'scale[]' value?
I could not find the above state even with movable.getRect() or onDragEvent.
A sample code of how to get it would be great!
The text was updated successfully, but these errors were encountered: