Skip to content

Commit

Permalink
attempt to fix Android 4.1 zoom freeze, Leaflet#1182
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored and emartinez-usgs committed Aug 15, 2013
1 parent fb29ed6 commit 48fb786
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dom/DomUtil.js
Expand Up @@ -264,8 +264,11 @@ L.DomUtil = {
L.DomUtil.TRANSFORM = L.DomUtil.testProp(
['transform', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform']);

// webkitTransition comes first because some browser versions that drop vendor prefix don't do
// the same for the transitionend event, in particular the Android 4.1 stock browser

L.DomUtil.TRANSITION = L.DomUtil.testProp(
['transition', 'webkitTransition', 'OTransition', 'MozTransition', 'msTransition']);
['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);

L.DomUtil.TRANSITION_END =
L.DomUtil.TRANSITION === 'webkitTransition' || L.DomUtil.TRANSITION === 'OTransition' ?
Expand Down

0 comments on commit 48fb786

Please sign in to comment.