Commit Graph

281 Commits

Author SHA1 Message Date
Jan Pieter Waagmeester
97e3d08dd5 Use L.DomUtil.addClass to add classes instead of direct attribute manipulation 2012-07-05 16:59:00 +02:00
Jan Pieter Waagmeester
0a98e75aba Fixed error after running spec: only remove spaces at head and tail now 2012-07-05 15:51:40 +02:00
Jan Pieter Waagmeester
f1480557af Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-07-05 15:45:28 +02:00
Jan Pieter Waagmeester
6096795c1c Fix regexp in DomUtil.removeClass to correctly remove spaces, use addClass in stead of manual class manimulation in Map.ZoomAnimation 2012-07-05 15:41:55 +02:00
fr1n63
ef0505515d Code conventions adherence 2012-07-04 11:12:19 +01:00
fr1n63
85d6ce08c2 Code conventions adherence 2012-07-04 11:03:25 +01:00
fr1n63
d17bfc6e30 Removing the console log from Map.js, added mobileWebkit browser check to Transition.Native.js bug fix, reverted build files to mourners last revision 2012-07-04 10:14:06 +01:00
fr1n63
7b6a2b8005 Seems to work, removed a lot of the over engineering, seems new version is more stable and deals with this fix better than the previous version did. 2012-07-03 16:30:53 +01:00
fr1n63
9365e76169 First attempts at resolving the zoom bug - changes since v0.3 have rendered this fix useless - try again later 2012-07-03 15:01:56 +01:00
mourner
28a21fd4c3 minor cleanup / refactoring, fix removeEventListener bug 2012-07-01 15:46:31 +03:00
mourner
0f40da1cce merge events by Guiswa, minor cleanup/refactoring 2012-06-30 14:51:09 +03:00
mourner
18557d890a update build and changelog, cleanup 2012-06-26 01:51:04 +03:00
Vladimir Agafonkin
4b2ccdd7fd Merge pull request #757 from stsydow/for_mourner
fixes NaN bug in scale control and spurios mousemove event
2012-06-25 15:32:34 -07:00
Stefan Sydow
8aaac25b11 fix spurios mousemove event for Chrome on Win 2012-06-26 00:11:40 +02:00
mourner
a9b42fad6d update changelog, cleanup 2012-06-26 01:05:55 +03:00
danzel
3536e9e3cc Comment on why a work around is there 2012-06-26 09:07:07 +12:00
danzel
e5239d167d Ensure translate3d is used in all webkit3d browsers and note why. 2012-06-26 09:07:06 +12:00
Vladimir Agafonkin
2ac4a6d364 L.Browser and translate refactor and cleanup 2012-06-25 18:58:37 +03:00
Vladimir Agafonkin
99dd46b538 ensure drag is not fired after dragend, closed #555 2012-06-25 18:08:00 +03:00
danzel
d8289081b8 Minor fixups for IE 10 support (Tested with Release Preview in a VirtualBox VM). Not sure if multi-touch support will work as I don't have a device. 2012-06-25 15:30:27 +12:00
danzel
c92059324d Position tiles without 3d transforms, this makes them faster (google maps does the same). The transforms for them (pan, zoom animation etc) happen on a parent node, this is unaffected.
If you run chrome with about:flags "Composited render layer borders" enabled you will see each tile is dark blue outlined when 3d positioned (meaning each is a render surface) and when not 3d positioned they are cyan outlined (tiles in a tiled composited layer), which renders faster.
Ref http://www.chromium.org/developers/design-documents/gpu-accelerated-compositing-in-chrome (very bottom)
2012-06-22 16:15:08 +12:00
mourner
6713200642 Fix panning animations in Firefox/Opera 2012-06-20 11:01:03 +03:00
danzel
60f4a70710 Make BackfaceVisibility generic. 2012-06-19 10:21:57 +12:00
danzel
063341c35e Add L.Browser.opera3d, L.Browser.any3d and use it everywhere instead of testing each browsers 3d everywhere. Gives opera 3d support!
Not totally happy with L.Browser.any3d not being in the closure, but it works.
2012-06-19 09:49:44 +12:00
danzel
cc304bf212 Add gecko3d support to Browser/DomUtil 2012-06-19 09:20:27 +12:00
Geremia Taglialatela
434e09f01b ie6 filter clearing fix 2012-05-05 13:13:07 +02:00
Dino Ravnić
1195ac3eea code reformating to make it compliant with jake 2012-04-27 15:00:36 +02:00
Vladimir Agafonkin
0d5e4ccf54 Merge pull request #602 from chx007/patch-1
getViewportOffset -> position:fiexd
2012-04-25 13:59:56 -07:00
chx007
280649bf42 getViewportOffset -> position:fiexd 2012-03-26 22:04:57 +08:00
Damon Oehlman
ab936cbafb Tweaked DOM util opacity to only apply in IE when opacity !== 1 2012-03-26 14:53:05 +10:00
mourner
5d263e9637 more inertia fixes 2012-02-25 11:40:39 +02:00
Dino Ravnić
5d1b56c9e7 "instanceof window.Event" didn't worked on Chrome, so replaced it with a more general variant 2012-02-25 01:31:37 +01:00
mourner
57aee3c5ed Finally implemented panning inertia, closed #17 2012-02-24 17:19:53 +02:00
mourner
194425d24b Fix stuttering of pan animation in some cases 2012-02-24 16:53:22 +02:00
mourner
de8274831b Merge branch 'master' into inertia 2012-02-23 16:37:57 +02:00
Vladimir Agafonkin
849a3b6e1b Merge pull request #524 from giscloud/return.this.fix
all paths need to return "this"
2012-02-22 23:23:58 -08:00
mourner
0a7bafd14f initial inertia work (experimental) 2012-02-23 01:10:28 +02:00
Dino Ravnić
e690cceda3 all paths need to return "this" 2012-02-23 00:09:30 +01:00
mourner
2f0fbc3ca3 make panning even more smooth 2012-02-22 09:00:54 +02:00
mourner
60f96281e7 Fixed false clicks on touch devices bugs, closed #485 2012-02-21 14:58:01 +02:00
mourner
10bb71fb2a Improved panning usability on marker-crowded maps, closed #506 2012-02-21 12:32:11 +02:00
mourner
bf558551ed Fix flickering cursor on marker dragging 2012-02-16 12:58:56 +02:00
mourner
df0800e678 Fixed click event after disabled dragging bug, closed #434 2012-02-15 19:26:17 +02:00
mourner
8e131c5f32 more cleanup and refactoring 2012-02-15 17:05:55 +02:00
mourner
fdde989f05 Fixed Android 3 stability issues 2012-02-13 16:01:00 +02:00
mourner
0756ef15c7 Fixed Android 2 stability issues, Closed #69 2012-02-13 14:32:58 +02:00
mourner
f46c0263c3 Fixed touch-panning inside a popup, closed #452 2012-02-03 12:59:05 +02:00
mourner
c509c55f20 more whitespace fixes 2011-12-10 13:48:45 +02:00
mourner
a9720fcb43 Final jshinting without remorse 2011-12-09 16:51:31 +02:00
mourner
b03f6eff07 Some really heavy jshinting and whitespace fixes 2011-12-09 16:35:15 +02:00
mourner
dc79b10683 More jshinting and whitespace fixes 2011-12-09 12:20:59 +02:00
mourner
fccecb419f Whitespace fixes 2011-12-08 17:53:17 +02:00
Samat K Jain
c59e8b3239 Ignore shift key for touch-enabled browsers
Firefox Mobile (née Fennec) has a bug that sets Event.shiftKey to true
even though the shift key is not depressed:

  https://bugzilla.mozilla.org/show_bug.cgi?id=694268

As a workaround, ignore whether the shift key is depressed for
touch-enabled browsers. This breaks Leaflet’s drag-zoom, but besides
being awkward I’m unsure it consistently worked on other touch-enabled
browsers (did not work for me on Android 2.3 devices w/ Bluetooth
keyboard).
2011-10-14 17:16:13 -06:00
mourner
be575a6622 Clear transition step interval timer one more time (to make sure it doesn't leak), related to #231 2011-09-23 18:18:43 +03:00
mourner
fe443d3d50 Fixed regression in Draggable (click triggers after dragging), closed #306 2011-09-23 17:03:36 +03:00
mourner
106054140b A better attempt at the copy world problem, hopefully closed #273, fixed #293, fixed #294, closed #288 2011-09-23 16:55:47 +03:00
mourner
9fad3d0b40 cleanup, fix IE6 events error 2011-09-20 17:03:35 +03:00
mourner
87e5cba374 Fixed whitespace 2011-09-20 16:27:08 +03:00
mourner
a7d2b16543 Fixed a bug related to panning getting stuck after releasing the mouse over an iframe or flash, closed #64 and #166 2011-09-20 16:22:30 +03:00
Vladimir Agafonkin
73d6fb6c0a Fixes IE problem introduced in a recent commit, #292 2011-09-14 20:19:50 +03:00
Mourner
1d86c969be Fix vector layer click events for iOS, close #204 2011-09-09 12:52:28 +03:00
Mourner
7ce750a3b7 more on #281 2011-09-08 12:11:14 +03:00
Mourner
fde7c7960a don't add the same listener twice, close #281 2011-09-08 12:01:21 +03:00
Mourner
6a39725de5 fix requestAnimationFrame in some Chrome/Linux builds 2011-08-15 18:34:58 +03:00
Mourner
13807db12e more mouse scrolling fixes, update build 2011-08-11 14:01:15 +03:00
ErshKUS
1fb8e4bb4b oops, I'm new to GitHub 2011-08-11 00:07:13 +03:00
ErshKUS
94d1288d4c fix zoom mousescroll, test FF3.6 Chrome last IE 8 2011-08-10 23:50:32 +03:00
Neno
6d509e432b Fix L.DomUtil.removeClasss method. Regex wasn't matching '-' chars in class names. 2011-07-31 14:04:04 +01:00
Mourner
aa5849a2dc fixed mouse zoom when map is inside scrollable div, closes #206 2011-07-28 12:49:32 +03:00
chrillo
d4c73d2b57 Scrolling Offset Bug Fix 2011-07-28 10:36:21 +02:00
Vladimir Agafonkin
c726d6f3cb Merge pull request #189 from anru/domutil
Add L.DomUtil.removeClass method
2011-07-20 04:27:12 -07:00
Andrey Rublev
479eaa6528 Now draggable's event 'drag' syncronized with actual position of draggable element 2011-07-20 14:18:59 +07:00
Andrey Rublev
b27922ea2c Add L.DomUtil.removeClass method 2011-07-15 19:03:35 +07:00
Mourner
9c19796f25 rely more on feature detection instead of ua string, closes #142 2011-06-23 14:41:47 +03:00
Mourner
0800c241c1 opera mobile fixes, closes #138 2011-06-17 19:40:27 +03:00
Mourner
05c4b3f114 add tap tolerance for better mobile usability, update changelog 2011-06-17 15:52:39 +03:00
Mourner
d3f0ba5424 don't use setTimeout on drag for browsers without requestAnimFrame 2011-06-17 14:10:30 +03:00
Mourner
d2487e89d0 improve mobile webkit click responsiveness, fix clicks in Android 2.1 2011-06-17 13:50:50 +03:00
mourner
c93d91bfad improve panning performance considerably, closes #130 2011-06-17 00:24:13 +03:00
Mourner
b781376e3d fix HTC Hero panning, closes #84 (hopefully) 2011-06-16 18:52:37 +03:00
Mourner
522fd7a78e fix bug with click propagation on popup close button, fixes #99 2011-06-03 14:32:17 +03:00
Mourner
2bbdc028ea fix map div absolute position bug, fixes #100 2011-06-03 11:52:51 +03:00
Mourner
eadb94f258 revert android fix as it prevents clicks on iphone :( 2011-05-31 20:02:23 +03:00
mourner
600c9619c3 Revert getTarget-related refactoring, fixes #87 (IE8 error) 2011-05-31 01:27:19 +03:00
mourner
af9319e52e fix whitespace 2011-05-31 00:39:04 +03:00
Miroff
c44ec4e1c0 Fixed issue #84 Panning is really slow under HTC Hero (Android 2.2) 2011-05-31 01:30:18 +07:00
Mourner
f36a2f91af fix accidentally broken tiles in IE6-8, fix SVG in IE9, fixes #83 2011-05-30 15:20:08 +03:00
Mourner
9863c0c6a0 tile layer refactoring 2011-05-27 18:36:11 +03:00
Mourner
089052e40d TileLayer opacity option 2011-05-23 14:09:15 +03:00
Mourner
ed4d73cc5a fix accidentally broken mousewheel 2011-05-20 11:19:51 +03:00
Mourner
5e927b0382 dom mouseenter/mouseleave, map mouseover/mousemove/mouseout events 2011-05-19 18:57:35 +03:00
Mourner
895d171648 android fixes, zoom animation refactoring, fadeAnimation option 2011-04-14 15:42:48 +03:00
Mourner
8cb51d1c6c Double tap on mobile webkit, update build 2011-04-12 16:53:07 +03:00
mourner
7162bd4930 refactor popup code, merge marker dragging from msaspence 2011-04-11 23:43:23 +03:00
Matt Spence
805f3b39b9 Added draggability to markers 2011-04-11 16:26:41 +01:00
Mourner
90f49fd235 fix scrolled document bug 2011-03-24 16:53:27 +02:00
Mourner
7e9d530f98 addClass, hasClass utility methods 2011-03-23 18:28:03 +02:00
Mourner
6c8ef08382 shift drag zoom 2011-03-21 19:09:43 +02:00
Mourner
f2eefe6506 options fix, L.Util.setOptions 2011-03-01 16:27:09 +02:00
Mourner
348860286c update folder structure 2011-01-21 11:55:08 +02:00
Mourner
62e947f4cc fix IE7 error (it sometimes doesn't like the delete statement) 2011-01-18 12:03:38 +02:00
Mourner
2088223229 fix markers in IE7 (you have to set the size explicitly for some reason) 2011-01-18 12:02:56 +02:00
Mourner
be09f97cf2 At last, zooming animation! HUGE commit! 2011-01-14 18:43:40 +02:00
Mourner
5b6a98acee L.DomUtil.create shortcut, refactoring, update build 2011-01-13 12:17:50 +02:00
Mourner
8bbe9940c0 new pretty marker icons 2011-01-12 16:51:54 +02:00
Mourner
17a896ceb7 Move disabling click propagation to an util method 2011-01-10 16:22:35 +02:00
Mourner
2e2e502d2d todo: refactor translate stuff 2011-01-10 16:22:07 +02:00
Mourner
739c8e289e popup implementation 2010-12-15 19:55:57 +02:00
Mourner
427e96540a moved Icon to dom package 2010-12-15 17:21:14 +02:00
mourner
f81641d083 remove unnecessary comment 2010-09-29 19:14:33 +03:00
mourner
ad7ab3a753 better progressive enhancement 2010-09-29 12:02:03 +03:00
mourner
533d095fef progressive enhancement for animation 2010-09-29 11:22:46 +03:00
mourner
284595f335 panning animation 2010-09-28 21:09:53 +03:00
mourner
5d809aa267 Transition implementation (both native and timer-based) 2010-09-28 20:53:45 +03:00
mourner
d1f1744ca3 jslinted 2010-09-27 18:34:56 +03:00
mourner
0991c7fc78 basic scroll wheel zoom 2010-09-27 13:09:41 +03:00
mourner
1ec2971172 small refactoring 2010-09-21 18:36:00 +03:00
mourner
480120e3f3 draggable fix 2010-09-21 16:10:31 +03:00
mourner
4984035a9e map events, double click fix 2010-09-21 15:48:31 +03:00
mourner
e734e20d55 map positioning refactoring 2010-09-21 15:28:13 +03:00
mourner
9437cfda37 fix draggable 2010-09-21 15:27:47 +03:00
mourner
5fc294650e translate/touch zoom refactoring 2010-09-20 15:08:25 +03:00
mourner
8313ea5497 move text selection to draggable private methods 2010-09-16 18:32:55 +03:00
mourner
c407e5c771 added Draggable 2010-09-16 16:05:55 +03:00
mourner
c267a232ef setPosition improvements for mobile 2010-09-16 16:05:42 +03:00
mourner
361d79c51f clean up formatting 2010-09-15 17:04:02 +03:00
mourner
ad46474275 added getStyle, fixed setPosition 2010-09-14 14:57:45 +03:00
mourner
00717ab05b positioning methods (with webkit acceleration support) 2010-09-13 18:18:12 +03:00
mourner
6a158218c1 DomUtil.get, spec 2010-09-07 17:02:45 +03:00
mourner
88ef7d1667 DomEvent fixes, specs 2010-09-07 15:04:00 +03:00
mourner
42bcb9b3b3 DomUtil, DomEvent, namespace config improvements, some specs 2010-09-07 14:27:44 +03:00