开发者

Draggable scrolling. How to scroll while dragging?

开发者 https://www.devze.com 2023-01-14 19:58 出处:网络
When I was starting to drag any element, mouse wheel scrolling is turned off, how to scroll while dragging?

When I was starting to drag any element, mouse wheel scrolling is turned off, how to scroll while dragging?

I'm newbie here, so I can't insert a picture, here's a link http://i.stack.imgur.co开发者_StackOverflow中文版m/4tp69.gif


Hm... I would say it is because the scrolling is caught by the dragged element, as it is on top of the VGroup. So - I guess the solution would be to listen to scrolling event in the dragged element and send that to the VGroup / something that will handle the drag'n'scrolling of the VGroup.

Also - I am not sure, but when you are dragging, the VGroup might no more be specified as the dragged element's parent - so, just add a realParent reference or whatever so you can always access it.

0

精彩评论

暂无评论...
验证码 换一张
取 消