Vladimir Agafonkin
6b9731283d
add and use DomUtil.remove
2013-12-05 14:35:39 +02:00
Vladimir Agafonkin
f2da891ff2
clean up DomEvent.DoubleTap
2013-12-03 17:05:51 +02:00
Vladimir Agafonkin
fa69db1082
clean up DomEvent, remove now irrelevant legacy IE magic
2013-12-03 16:57:24 +02:00
Vladimir Agafonkin
ea0650b399
cleanup DomUtil code
2013-12-03 16:14:12 +02:00
danzel
58551506f2
Don't fire dragend if a dragstart did not occur due to a multitouch action. fixes #2256
2013-12-02 14:06:47 +13:00
danzel
66282f14bc
Disable webkit3d on android 2/3 because it is buggy as. fixes #2198
2013-11-21 09:34:19 +13:00
danzel
00e0dcf3e5
Fix spelling mistake in removeClass
2013-11-15 10:17:08 +13:00
danzel
b2959b4488
IE doesn't support e.target, use srcElement.
...
http://stackoverflow.com/questions/1143196/ie-e-target-id-is-not-working
2013-11-15 10:16:42 +13:00
Vladimir Agafonkin
db446f3e46
add leaflet-drag-target class to dragged elements, ref #2164 , #1902
2013-11-13 12:56:04 +02:00
Vladimir Agafonkin
c500d5ac1f
make className utils work for SVG elements in IE9, ref #2164
2013-11-12 18:52:13 +02:00
Vladimir Agafonkin
9babc039f0
use classList for class ops where available; ref #2164
...
makes it much faster, and also makes adding/removing classes work for
SVG elements
2013-11-12 17:50:45 +02:00
John Firebaugh
dd063b26a1
Prefer selectstart to user-select
...
Rather than both setting user-select to none and suppressing the selectstart
event, we now prefer to suppress the selectstart event if supported. This avoids
redundantly setting the user-select style, which can be slow. Fixes #2163 .
2013-11-06 16:04:27 -08:00
Vladimir Agafonkin
ddbb01c3da
add distance to dragend event data, close #2158 , ref #872
2013-11-06 21:17:35 +02:00
danzel
80c48c5da7
Re-add ltr/rtl detection and make getMousePosition work correctly with rtl again when scrolled.
2013-10-30 14:32:18 +13:00
danzel
0c7e7eb373
Delete ltr/rtl code as its not needed any more, wtf?
2013-10-30 10:25:28 +13:00
Vladimir Agafonkin
b0df9627b0
Merge pull request #2117 from danzel/fix-2094
...
Fix click events when touch zooming on ie 10
2013-10-23 04:36:51 -07:00
danzel
6855e7dfd8
The drag click avoid hack is needed for touch zooms on ie10 also, when releasing your fingers after a touch zoom click events are generated. Fixes #2094
2013-10-23 16:28:56 +13:00
danzel
91cc18503c
Remove leftover code from the draggable/tap cleanup. Fixes #2103
2013-10-21 11:38:19 +13:00
Vladimir Agafonkin
9d28dbb360
hopefully fix IE11/Win8.1 touch interaction, close #2102 (thanks @fnicollet)
...
#2103 may be related too
2013-10-18 12:55:50 +03:00
Vladimir Agafonkin
1a3b150a2d
fix layers control not scrolling in FF, close #2029
...
and also add DomEvent disableScrollPropagation method
2013-10-14 13:29:23 +03:00
danzel
a9627d63af
Fix lines too long issues
2013-10-10 15:27:23 +13:00
danzel
6e3e0d9b14
Rename MsTouch to Pointer
2013-10-04 15:07:30 +13:00
danzel
bf3b660bef
Redo MsTouch to be pointer events with msPointer fallback for IE10. fixes #2037
2013-10-04 15:06:53 +13:00
danzel
dbced20543
MsTouch needs preventDefault. Fixes #2000
2013-08-29 09:22:36 +12:00
Vladimir Agafonkin
14d934b639
Merge pull request #1963 from fastrde/fixSecondClickPopupIssue
...
Fix second click popup issue (#1925 )
2013-08-20 10:04:33 -07:00
Fabian Strachanski
caece94467
added _skipped(e) to stopPropagation to reset _fakeStop
2013-08-20 17:21:13 +02:00
Dag Jomar Mersland
d78fb49943
Fix for iPad, where el.tagName was undefined when clicking on labels.
2013-08-19 10:14:36 +02:00
Stefan Sydow
1b584afc49
remove tailing spaces for jake build
2013-08-09 09:28:08 +02:00
fastrde
5de0be072a
moved this._moved = false to the top of _onDown to fix an Issue von shift-click after dragging
2013-08-08 15:32:48 +02:00
Scooter Wadsworth
ea044c8312
Make container optional in L.DomUtil.getMousePosition(). Addresses #1926
2013-08-01 00:15:53 -04:00
Vladimir Agafonkin
5c1a34979e
fix fakeStop in IE<9, close #1850 hopefully
2013-07-12 12:41:08 +03:00
Aaron Rutkovsky
24ebb66f40
Stop animation if can't get position from current style
2013-07-11 11:27:57 -05:00
Aaron Rutkovsky
b3b06eaabc
Merge branch 'master' into disable_animations_outside_dom
2013-07-11 10:29:36 -05:00
John Firebaugh
a1d7c1268d
Mirror D3 strategy for drag event suppression
...
-webkit-user-drag is not inherited, so it's ineffective
at preventing drags of image overlays (#1821 ). Instead,
always preventDefault on dragstart.
While here, preventDefault on selectstart as well (a
"belt-and-suspenders" approach).
Together, these changes bring Leaflet's strategy in line
with D3's:
https://github.com/mbostock/d3/blob/master/src/event/drag.js
2013-07-08 10:26:02 -07:00
Josh Caldwell
0c381325bb
Fix issue with mouse position when page is scrolled
2013-07-05 11:50:36 -04:00
Scooter Wadsworth
914807c621
attempt to address regressions from #1684 , #1745
2013-07-03 22:42:10 -06:00
Aaron Rutkovsky
f01e010f9a
Stop transition if element is outside fo the DOM
2013-07-03 18:06:45 -05:00
John Firebaugh
4a8b5486c9
Disable text selection on mousedown rather than move
...
This seems to fix #1800 and a related unfiled issue reported in
IRC regarding tiles becoming selected on double-click when a
vector layer is present.
2013-06-27 18:06:43 -04:00
John Firebaugh
bc40266bc9
Revert "Use "wheel" event where supported ( #1788 )"
...
This reverts commit a784c560e5
.
2013-06-27 10:27:42 -04:00
Vladimir Agafonkin
c56e3762ac
bring back the horrible timeout hack for Android, close #1785
2013-06-25 19:42:03 -04:00
John Firebaugh
a784c560e5
Use "wheel" event where supported ( #1788 )
2013-06-25 13:31:51 -04:00
Vladimir Agafonkin
e74fc2594e
minor formatting stuff
2013-06-25 10:25:16 -04:00
John Firebaugh
1b5a77f77d
Also disable user-drag/prevent dragstart events
...
Unlike preventTextSelection, it appears important that
this happens on mousedown rather than the first mousemove
event. Otherwise, tile images are still sometimes draggable
on Firefox.
2013-06-25 10:12:02 -04:00
Vladimir Agafonkin
89d0730254
fix Android firing click twice on buttons, close #1785 , related #1694
2013-06-25 09:45:35 -04:00
Vladimir Agafonkin
3076210fd1
revert remove preventDefault #1782 , breaks FF
2013-06-24 23:55:11 -04:00
Vladimir Agafonkin
f1e87ef665
remove unnecessary preventDefault
2013-06-24 23:24:52 -04:00
Vladimir Agafonkin
95d6d27cb0
Merge branch 'iframe-drag'
...
* iframe-drag:
fix jshint errors
Refine existing methods for disabling text selection
Add iframe debug html
Suppress text selection behavior during drag
Continue to preventDefault on touch
Remove preventDefault and mousedown workaround
2013-06-24 23:23:54 -04:00
Vladimir Agafonkin
9fb565aa93
fix jshint errors
2013-06-24 23:23:43 -04:00
Vladimir Agafonkin
f9ea4758f8
move all tap hacks code into a separate handler, close #1781
2013-06-24 18:17:25 -04:00
John Firebaugh
60476da33c
Refine existing methods for disabling text selection
2013-06-24 17:37:19 -04:00