On 12/2/11 12:35 PM, Randy Hengst wrote:

I have a variable set as a marker… it's made "true" in the
mouseDown.

However, a mouseEnter does not seem to be sent while a dragging with
the mouse (or your finger in iOS) down… neither does the mouseLoc()
get updated…

Interesting. You're right. This seems to work instead:

local sFlag

on mouseDown
  put true into sFlag
end mouseDown

on mouseMove x,y
  if not sFlag then pass mousemove
  repeat with i = 1 to 10
    if x,y is within the rect of btn i then
      put the short name of btn i
    end if
  end repeat
end mouseMove

on mouseUp
  put false into sFlag
end mouseUp

on mouseRelease
  put false into sFlag
end mouseRelease

I put it into a card script. LiveCode is pretty fast, I don't see any lag while polling.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to