question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move if transform scale

See original GitHub issue

If parent div scale: <div style="transform: scale(0.5)"><VueDraggableResizable/></div> mouse moves faster than div. To fix, add the scale parameter from VueDraggableResizable and change vue-draggable-resizable.vue 401,402 line:

this.elmX += diffX / this.scale this.elmY += diffY / this.scale

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mauriciuscommented, May 3, 2020

See https://github.com/mauricius/vue-draggable-resizable#scale. I forgot to add it do the documentation when I implemented it 😅

0reactions
tpraxlcommented, Dec 11, 2018

@eyaylagul I’m actually doing other stuff. I apply a transform: scale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

scale() - CSS: Cascading Style Sheets - MDN Web Docs
This scaling transformation is characterized by a two-dimensional vector. Its coordinates define how much scaling is done in each direction. If ...
Read more >
Why does my transform: scale() property move the image to ...
It's not moving to the left. The left edge is moving, however, as is the right. Because your content is left-aligned, it appears...
Read more >
transform - CSS-Tricks
The transform property allows you to visually manipulate an element by skewing, rotating, translating, or scaling:
Read more >
CSS Transitions and Transforms for Beginners - Thoughtbot
The scale value allows you to increase or decrease the size of an element. For example, the value 2 would transform the size...
Read more >
Transforms - Unity - Manual
The Transform component determines the Position, Rotation, and Scale of ... In the scene, you can modify Transforms using the Move, Rotate and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found