interact.js icon indicating copy to clipboard operation
interact.js copied to clipboard

Resizing BL, L, TL, T, and TR edges and corners moves element. Dragging is also not 1:1

Open bxchang04 opened this issue 6 years ago • 3 comments

I don't get this bug in my CodePen, but when I run it locally using a local server (npm http-server) I get this behavior below. I've tried changing the resize border but that didn't help:

Video: https://youtu.be/iL8RLWGJ2rE

Any advice would be greatly appreciated!

CodePen: https://codepen.io/bxchang04/pen/XWmWbZQ

Expected behavior

Tell us what should happen Element should not move while being resized. Dragging should also be 1:1 with cursor movement.

Actual behavior

Element moves while being resized in the BL, L, TL, T, and TR edges and corners. Dragging moves element faster than cursor.

System configuration

interact.js version: 1.9.9 Browser name and version: Chrome 80.0.3987.163 (Official Build) (64-bit) Operating System: Windows 10

bxchang04 avatar Apr 09 '20 02:04 bxchang04

Update: I noticed I do not get this issue when I open my index.html file locally.

However when I run a local server ($http-server) and open my app on in my browser on localhost:8080, I get the behavior in the video above. I suspect this is being caused by http-server, and if this is a know issue, please let me know how to avoid this, thanks!

bxchang04 avatar Apr 09 '20 02:04 bxchang04

It looks like the target element or one of its parents has a CSS transform applied that scales the element. Can you check if this is true?

taye avatar May 03 '20 17:05 taye

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 19 '20 22:09 stale[bot]