mmikowski / jquery.event.ue Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin to unify mouse and touch input
jQuery plugin to unify mouse and touch input
hi, I found somthing wrong with the utap event when I tried to bind an event to a button element, it can not trigger the callback,just like
$('.ok').bind('utap.utap',onTapLogin);
onTapLogin function won't be triggered; and if $(".ok") is a submit button , my login-page will exit automaticly.
i am confused and i don't know if i did something wrong
and last forgive my poor English
touchcancel event is not managed
On IOS7 on iPad, when I
I've update your delivery to prevent this case : I add the same management for touchcancel than for touchend.
line 163:
$(document).bind( 'mouseup.__ue' , onMouse );
$(document).bind( 'touchend.__ue' , onTouch );
$(document).bind( 'touchcancel.__ue' , onTouch );
line 363:
$(document).unbind( 'mouseup.__ue');
$(document).unbind( 'touchend.__ue');
$(document).unbind( 'touchcancel.__ue');
line 670:
case 'touchstart' : handler_fn = fnMotionStart; break;
case 'touchmove' :
handler_fn = fnMotionMove;
event.preventDefault();
break;
case 'touchend' :
case 'touchcancel':handler_fn = fnMotionEnd; break;
default : handler_fn = null;
Hi. I've used jQuery.udraggable and found that the jquery.event.ue library has problem in IE9 concerning the left attribute on position property.
The following works:
jQueryMap.$contentPane.on ('click', '.spa-shell-menu-toggle', onTapToggle);
But the following doesn't:
jQueryMap.$contentPane.on ('utap', '.spa-shell-menu-toggle', onTapToggle);
after removing the toggle from the contentPane, appending some new html to the content pane and prepending again the toggle.
Please, let me know how can I fix this directly in the source unless (you plan to fix this yourself, which would be great).
None of the events fire on IE8, best I can tell.
What would be involved with fixing this? I might be able to help if you could point me in the right direction.
It would be great to have this fixed, seeing that IE8 market share has hovered around 20% for the last year, and will likely stick around a while longer.
The documentation also needs to be clarified as to which IE versions are supported.
I wanted to follow up on the scroll area issues in the iOS simulator. Sorry so late with that.
The reason I originally found your plugin was to have a "touch hold" event. I ended up implementing my own, but wanted to mention how I handled the same problem in my code. Basically event.preventDefault() wasn't called right away. Instead, it is only the criteria is met for detecting touch hold (or some other behaviors we wanted to detect a special case) that the default event is blocked. Seems to work well that way in our use case, which is admittedly more specific than yours.
If you haven't found a solution for this issue yet, I'm happy to help out.
For mouse events, the elem_target set, when dragging over another element, seems to be the element over which you have dragged.
On touch events, the elem_target seems to always be set as the element being dragged.
This makes it difficult to implement a drop. On mouse, when dragging and dropping, the elm_target is set the element onto which the item was dropped. But for touch, it always remains the original item.
Hi,
When pinch zooming on a touch device I'd like to know the coordinate of the point midway between the two touch points so I can hold that point fixed during the zoom. Is there a way to get this information with your plugin?
Thanks,
Wayne
Was using this on an app, but the library is returning this error when in the iOS simulator (iOS 8.1): "TypeError: undefined is not an object (evaluating 'o_event.changedTouches')". The error is on Line 656, after a reference to "event.originalEvent" (this property obviously doesn't exist).
I'd help fix this but not sure yet what that code is trying to do.
Greetings Mike,
Thanks for the awesome book and the good work.
I need to use the utap event for a div on a spa that I am building. I have the following code:
var entryDiv = $("#entry"+statusUpdateMap.entryId);
entryDiv.unbind('utap.utap').bind('utap.utap', function () {
spa.model.bdv.askForLogDetails(statusUpdateMap.entryId);
});
If I remove this bit of code, the site is zoomable and scrollable. How do I specify that I want the page to be zoomable and scrollable on a mobile device when using this library?
Hi
Thanks you for the handy lib to get unified events. We have some behavior on Windows touch pads, that a short tap (not click) is always recorded around 200ms (motion_map.ms_elapsed). Because of this, I would like to change the max_tap_ms and min_held_ms values.
Is it possible to overwrite the values of the defaultOptMap and what's the right way to do that?
Thanks,
Thomas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.