Skip to main content
Inspiring
November 8, 2013
Question

drag/scroll without clicking

  • November 8, 2013
  • 1 reply
  • 480 views

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?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
November 8, 2013

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.