Joschka
06bb571095
Fix viewport offset calculation in Firefox (issue #1322 )
2013-02-09 18:51:00 +01:00
Vladimir Agafonkin
98a950ff53
cleanup #1227 pull
2013-02-04 14:40:28 +02:00
Vladimir Agafonkin
72ad6912e6
Merge pull request #1227 from jerel/patch/android-webview
...
A bug in Android WebView triggers two clicks at once.
2013-02-04 04:34:19 -08:00
Vladimir Agafonkin
64ca0af124
attempt to fix Android 4.1 zoom freeze, #1182
2013-01-11 18:20:40 +02:00
jerel
c63e3721cb
This modifies the Android WebView phantom click workaround.
...
Previously it was blocking when an element had multiple click listeners
because those events were fired rapidly. Since Android fires its second
click at approximately 300ms after the first we do a check to make sure
that at least 100ms has elapsed but not more than 400ms.
2012-12-27 00:40:41 -06:00
jerel
0919b25cd6
This makes sure we only do the Android duplicate click workaround on Android
2012-12-21 08:37:13 -06:00
jerel
cf94612f6b
Fixes #1041 , Android WebView triggers two clicks at once. This calls
...
L.DomEvent.stop(event) on the second if two clicks are triggered within 400ms
of each other. Double click is unaffected however.
There are other workarounds that focus on _fireMouseEvent(), however I had to
resolve it at the click event level as my map, markers, controls, were all
affected.
2012-12-21 01:54:15 -06:00
Vladimir Agafonkin
b9727d9190
made up my mind about comment format, add some more comments
2012-12-20 12:37:40 +02:00
Vladimir Agafonkin
b0e5c817a9
more comments and cleanup
2012-12-19 18:47:28 +02:00
Vladimir Agafonkin
6134a41554
jshint fixes and cleanup for uglifyjs2
2012-12-12 19:09:47 +02:00
Vladimir Agafonkin
f203c244d4
fix text selection regression, #1193 , #892
2012-12-11 11:44:06 +02:00
Manuel Ohlendorf
cf883a036d
fix indentation: use tabs instead of spaces
2012-12-07 11:05:38 +01:00
Manuel Ohlendorf
94a8b19f11
fixes Issue 1204: border width is now added to viewpoint offset calculation
2012-12-06 13:25:17 +01:00
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