Copy link to clipboard
Copied
hey guys,
Working on a game that mimics a webpage. Now I want to drag up/down like you would on an ipad. The issue is that there is content on the page that is hyperlinked. So would I best go about implementing a drag scroll and not have it execute the hyperlink if I happened to drag from it's linking picture?
Copy link to clipboard
Copied
You could compare the mouseX and/or mouseY values on the MOUSE_DOWN and the CLICK for any of the linked objects to see if the values have changed (maybe beyond some reasonable allowance). If so, skip the link processing.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now