joshgerdes / jquery.ui.touch Goto Github PK
View Code? Open in Web Editor NEWa modified version of a jQuery plugin that enables touch event for jQuery UI.
a modified version of a jQuery plugin that enables touch event for jQuery UI.
On iOs 6.1.3 on an iPad 4, when using either this plugin or Stephen von Takach's original jquery.ui.touch.js, it is not possible to access the virtual keyboard in order to type into an <input type="text" ...>
field. Stephen's issue tracker on googlecode contains a relevant thread started by Roland Caspers in Feb 2012. Roland provided a patch that was reported in Sep 2012 to work on iOS 5 but not on iOS6. I modified Roland's patch to fix this problem for iOS6.1.3 on an iPad 4, but I have no other iThings for testing it.
The updated patch goes into the "touchstart" case in iPadTouchHandler(), and it can be applied either to this plugin or to Stephen's original to fix this problem:
switch (event.type) {
case "touchstart":
if ($(event.changedTouches[0].target).is("select")) {
return;
}
// patch begins here
if ($(event.changedTouches[0].target).is("input")) {
return false; // allow access to keyboard on text input
}
// patch ends here
iPadTouchStart(event); /*We need to trigger two events here to support one touch drag and drop*/
event.preventDefault();
return false;
break;
Thanks for your work on this plugin, which (with the fix above) is exactly what I needed!
George Moody
Hello Joshgerdes,
Thanks for the lovely work around.
With simple div tags all seems to work fine for me. When i try to use it with full calendar 1.6.4, it doesn't seems to work.
If possible can you please create a sample plunker / jsfiddle which works with full calendar 1.6.4?
Kind Regards
Kay
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.