Commit Graph

193 Commits

Author SHA1 Message Date
Jon Stevens
4ba1bbcdd7 fix for issue #892 , second time around. 2012-11-30 12:03:20 -08:00
danzel
5e35553361 Code tidyups from mourners feedback. 2012-11-16 11:28:01 +13:00
danzel
0efa63500c Fix up 2 places where L.Draggable.START hadn't been updated for it being an array (thanks mourner) 2012-11-16 10:57:29 +13:00
danzel
41a85b0128 Only wire move/end listeners for the thing we want to listen to.
Stops potential bug:
User touches on device, user moves mouse. These mouse move events would have panned the map, now they won't.
2012-11-16 10:57:28 +13:00
danzel
46b7d97298 Get doubleclick on touch&mouse devices working. We need to add a touch doubletap emulator and a normal doubleclick listener 2012-11-16 10:57:27 +13:00
danzel
cb9407ffee Sort of working Draggable support for touch+mouse devices. 2012-11-16 10:57:26 +13:00
Pascal Borreli
9546599520 Fixed typos 2012-11-09 23:15:48 +00:00
Vladimir Agafonkin
e4ec9a8967 fix bug in #1131, update build 2012-11-09 16:27:56 +02:00
danzel
6fbf2a21bf Move reflow into PosAnimation.stop so users don't have to implement it themselves. 2012-11-09 16:13:52 +13:00
Vladimir Agafonkin
d37680735f rewrite and tweak inertia easing to make it smoother 2012-11-08 19:20:40 +02:00
Vladimir Agafonkin
dbd4da6255 add shortcuts for extend, bind, stamp and setOptions 2012-11-07 20:30:56 +02:00
Vladimir Agafonkin
7517cbcd53 fix typos and regression in #1122 2012-11-07 19:21:21 +02:00
Vladimir Agafonkin
2b225cc3a8 more whitespace fixes 2012-11-07 18:46:59 +02:00
danzel
edaa1bbcec Disable longPress contextmenu emulation on msTouch, it natively fires its own contextmenu event after a longpress is released. 2012-10-31 13:26:56 +13:00
danzel
081edc283e Rename timeout to match other vars 2012-10-31 13:25:29 +13:00
danzel
5f960721d9 Use L.Util.bind instead of var self. 2012-10-31 13:11:16 +13:00
danzel
3aeff55f24 Rename contextMenuEmulation -> longPress 2012-10-31 13:05:38 +13:00
danzel
9783d9ba22 Cancel contextMenu emulation timeout if >1 touches happen (Put them down for a touch zoom and didn't move them for example) 2012-10-31 12:59:59 +13:00
danzel
514908f812 Stop touchStart propagation in Draggable. Without this dragging marker will fire a contextmenu event on touch as the map gets a touch start/end event but none of the moves. 2012-10-31 12:59:58 +13:00
danzel
1aff46cb27 Rewrite longpress->contextmenu to live inside Draggable instead as it needs deep interaction with it. When an emulated contextmenu is fired on touch we stop dragging and stop a click event from occurring. New map option to disable it if required: touchContextMenuEmulation 2012-10-31 12:59:58 +13:00
danzel
d3d85198e2 Need to clone the x/y of the touch as the actual object gets updated. This fixes contextMenu occurring while touch panning the map. 2012-10-31 12:58:59 +13:00
danzel
d133c86b51 Add LongPress support to mobile. Fires a contextmenu event after a single press without movement of 1 second 2012-10-31 12:58:58 +13:00
danzel
d1a1f1748a Make jshint happy 2012-10-29 11:49:51 +13:00
danzel
eecd28e570 Make getStyle work for ie < 9. Make IE<=7 support RTL too. 2012-10-29 11:46:40 +13:00
danzel
b6ae1259f0 Text alignment 2012-10-29 11:11:14 +13:00
danzel
9b5d25ae7f Only apply scrollWidth/clientWidth for webkit. Other browsers handle it differently. 2012-10-29 11:06:22 +13:00
danzel
126a316916 Cache remembering if the document is Left to right. Do it at the document level rather than the element level as it isn't likely to change. 2012-10-29 10:48:01 +13:00
danzel
c649a4fd92 Update L.DomUtil.getViewportOffset to support dir="rtl"
Fix css element positioning when rtl.
Fixes #1095
2012-10-29 10:18:38 +13:00
Vladimir Agafonkin
335b7f46eb clean up browser detection 2012-10-18 18:43:03 +03:00
danzel
816b53f2de jshint happiness 2012-10-18 14:23:18 +13:00
danzel
c6be039326 Fix up DoubleTap in ie10 emulation mode bailing as touches isn't set (which it of course isn't!) 2012-10-18 14:23:17 +13:00
danzel
f373d6b0d4 The internal MSPointerUp/Cancel listener should be set on the document and never let go otherwise we can miss MSPointerUp events. 2012-10-18 14:23:17 +13:00
danzel
1bf755dce3 Fix up double tap listener with ie10. We listen for up events on the document so that we get all of them, otherwise we will miss some and mess up our touch coun tracking. 2012-10-18 14:23:16 +13:00
danzel
31542bd932 Remove debug logs 2012-10-18 14:23:16 +13:00
danzel
84d5f614da Fix up my stupidness with add/removeEventListener. Fixes the zoom drag off screen bug without needing the work around 2012-10-18 14:23:15 +13:00
danzel
af2318afaa Ensure we still fire the dragend event. Move click simulation until after the drag has finished (clicking during a drag seems weird). 2012-10-18 14:23:14 +13:00
Marcel Sulek
ba22cc28b2 IE10 - fix of not simulating clicks even when drag was within TAP_TOLERANCE
(cherry picked from commit b7e84aed9b77c51e2a4698251bf38ccf46b82dc7)
2012-10-18 14:23:14 +13:00
danzel
fc3a36d39c Remove duplicate comment 2012-10-18 14:23:13 +13:00
Marcel Sulek
63f24a91cc IE10 double-tap fix - binding touchEvent methods instead of deleting them
(cherry picked from commit ec2989e1331ded00d6dfd97263cba75e95d19f08)
2012-10-18 14:23:12 +13:00
danzel
b2945b5c94 Attempt a fix at the screen edge bug 2012-10-18 14:23:12 +13:00
danzel
8c1b1c83ba Add listeners for MSPointerCancel, hopefully fixes remaining touch issues. Also fixes removeDoubleTapListener for all platforms 2012-10-18 14:23:11 +13:00
danzel
db6b0c60f8 JSHint happiness 2012-10-18 14:23:10 +13:00
danzel
a23f650069 Make DomEvent.DoubleTap support MSPointer* events. Had to track touch count manually and clone the object so we can change the type. 2012-10-18 14:23:10 +13:00
danzel
8bed7adb81 Make touch events work for IE10 using a wrapper approach (similar to DomEvent.DoubleTap). DoubleTap touch on IE10 doesn't currently work but everything else does. Refs #871 2012-10-18 14:23:09 +13:00
danzel
b596383f45 Fix tile zoom animation in latest chrome canary and remove the translate(0,0) hack for other browsers as this fixes it too :-) Fixes #1056 2012-10-11 12:48:20 +13:00
Vladimir Agafonkin
4ed3c97bcd fix various master regressions 2012-09-11 12:33:54 +03:00
Vladimir Agafonkin
9625cdbbb9 fixed glitches with zooming on pan animation and panning on zoom animation 2012-08-13 15:41:20 +03:00
Jon Stevens
1e363f29f1 null check setting of document.onselectstart 2012-08-10 13:20:48 -07:00
mourner
8980f2d224 minor code cleanup, more destructive point operations 2012-08-10 22:40:55 +03:00
mourner
7627d39700 improve PosAnimation code a bit 2012-08-10 21:50:00 +03:00