forked from furf/jquery-ui-touch-punch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated to v1.0.0 to combine suggested changes Combine suggested changes to take account of issues with the original jquery-ui-touch-punch.js which has not been updated since 2014 - https://github.com/furf/jquery-ui-touch-punch * Update to cover why new fork created * Removed change for zoomed devices Lines dealing with "fix for zoomed devices while dragging" prevented jQuery ui sortable from moving items after you drag them to a new position * Notes on jquery-ui dialog and close button * Update for Apple Pencil This fixes the issue: furf#315 where the Apple Pencil triggers a touchmove event and you may struggle to trigger a click with the pencil * FIx #4 - mouse undefined * Typo in last commit * v1.0.3 Release - Change to handling of click events Previous release had an issue where clicking through to an input or a button (for example the close button on jQuery.ui dialog boxes) was not being recognised as a click. Incorporated another fix from the v0.2.3 branch so the code now treats anything as a click if (a) they leave theri finger on the control for less than 500ms, or (b) they do not move their finger more than 10 pixels * Correct patch as per original v1.0.2 code * Prevent simulation of two clicks when interaction hasn't moved * Updated for jQuery v3 Changed .bind and .unbind to .on and .off (works with jQuery v1.7 also) * v1.0.5 - Update to support Lenova touch screen Firefox on Lenova touch screen (and similar devices) was still failing the $.support.touch test. * Update Header Comments Updated comments and header * Remove minified version Minified version was the original and never updated - so has been removed from this fork * Readme updated - removal of minified version * Update re Issue furf#13 Change to ensure that startedMove and startPos are always reset on a touchstart, and touchMoved is reset after a touchEnd. * Updated version number * fix errors while using draggable during mobile scrolling * Change version * v1.0.8 - MS Surface Devices Added check for MS Surface device support Co-authored-by: Rich M <[email protected]> Co-authored-by: Per Rovegård <[email protected]> Co-authored-by: Sébastien Gaya <[email protected]>
- Loading branch information
1 parent
4bc0091
commit 430148b
Showing
4 changed files
with
117 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Whilst implementing this, we noticed that on some mobile phones there were still some issues: | ||
|
||
a) If you have a jquery-ui dialog box open, it could be nigh impossible to use the close icon in the top right hand | ||
corner on some phones. | ||
After some experimentation, we found that we had to check if the screen size <= 480 and in that case, set the dialog | ||
"draggable" setting to false | ||
|
||
Presumably the phone was struggling to work out if we were trying to drag a box which might only be a couple of pixels smaller | ||
than the width of the screen, or we wanted to hit the close icon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.