We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to dispatch gestures and clicks? Does this work? http://stackoverflow.com/questions/5931172/x-y-touch-coordinates-for-ios-mobile-devices
document.addEventListener('touchstart', function(e) { }, false); document.addEventListener('touchmove', function(e) { e.preventDefault(); }, false);
The text was updated successfully, but these errors were encountered:
The code for dispatch user events are
setupEventDispatcher: () -> $body = $("body") events = ["touchstart", "touchmove", "touchend", "touchcancel", "mousemove", "mousedown", "mouseup"] for event in events block = (event) => $body.on event, (e) => this[event](e) block(event) mousedown: (e) -> layer = $(e.target) view = layer.data("view") while !view break if layer.is($(document)) layer = layer.parent() view = layer.data("view") responder = view while responder && !responder.canBecomeFirstResponder() responder = responder.nextResponder() if responder event = new CB.Event event._timestamp = "ok" event._locationInWindow = new CB.Point(e.clientX, e.clientY) event._type = "mouse" event._view = view event._window = view.window responder.mouseDownWithEvent(event)
Sorry, something went wrong.
issues
No branches or pull requests
How to dispatch gestures and clicks?
Does this work?
http://stackoverflow.com/questions/5931172/x-y-touch-coordinates-for-ios-mobile-devices
The text was updated successfully, but these errors were encountered: