gijgo icon indicating copy to clipboard operation
gijgo copied to clipboard

Added page scroll offsets to draggable

Open comfix opened this issue 5 years ago • 0 comments

Added window.pageYOffset and window.pageXOffset to mouse positions so that the draggable object works reliably when the page got scrolled down.

Effects can be seen by using the draggable example Draggable.Base.drag.sample.html and bunch of status lines have been added to the page. Try scrolling down and move the object. It just flys offscreen without this fix.

comfix avatar Jan 13 '20 13:01 comfix