Commit Graph

193 Commits

Author SHA1 Message Date
Vladimir Agafonkin
2d2fc74110 get rid of the legacy L.Transition, replace with a better and simpler L.PosAnimation 2012-08-10 18:43:46 +03:00
Vladimir Agafonkin
f184df2c27 fix map panning inertia flicker on Chrome 2012-08-06 14:43:32 +03:00
danzel
8d4d347ec9 Fix setting opacity multiple times in oldie. Was disabling the filter if it should be enabled and vice-versa 2012-08-02 12:47:49 +03:00
Vladimir Agafonkin
1b88497f44 fix dragging cursor appearing to early on FF 2012-08-02 12:46:58 +03:00
danzel
606fe257d9 Fix up zoom fixes on Touch, fake doubleTap handler wasn't returning itself, breaking the chaining. Remove the preventDefault on dblclick as it does nothing.
Turns out this fix doesn't prevent double tap on the zoom button on touch devices.
2012-07-27 09:12:58 +12:00
Vladimir Agafonkin
3201dd066a cleanup setOpacity for IE 2012-07-25 11:08:51 +03:00
Andrew Beaven
c19ee48904 Fixes popups in IE8 and earlier 2012-07-25 16:30:21 +12:00
mourner
d608222018 revert removing immediate option in reqAnimFrame 2012-07-20 21:34:21 +03:00
mourner
f1c4a1f554 refactor request/cancelAnimFrame 2012-07-20 21:15:07 +03:00
Vladimir Agafonkin
bd1510cec4 improve panning inertia, fix animation easings on IE 2012-07-12 17:46:17 +03:00
Vladimir Agafonkin
4edfaee008 Use feature detection instead of browser sniffing for opacity, #796 2012-07-12 10:31:21 +03:00
danzel
e8a904530e Fix up opacity in IE10, use style.opacity in IE9 also
http://caniuse.com/#feat=css-opacity
Regex from http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx
2012-07-12 09:54:53 +12:00
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