Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

IE zoombar fixes

  • Loading branch information...
commit 63d4d16e9cc1c09111fee08a00847a08dbd89d7e 1 parent 0f211fb
@DamonOehlman authored
View
10 demos/tests.html
@@ -306,20 +306,16 @@
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
- <script src="_demogen/js/keymaster.min.js"></script>
- <script src="_demogen/js/jquery-1.6.2.min.js"></script>
- <script src="_demogen/js/ace/ace.js"></script>
- <script src="_demogen/js/ace/theme-dawn.js"></script>
- <script src="_demogen/js/ace/mode-javascript.js"></script>
+ <script src="_demogen/js/raphael-min.js"></script>
<script src="../dist/tile5.cloudmade.js"></script>
- <script src="_demogen/js/runner.js"></script>
+ <script src="../dist/plugins/renderer.raphael.js"></script>
<script>
var settings = {"theme":"dawn","mode":"javascript","body":"<div id=\"mapContainer\"></div>"};
</script>
<script defer="defer">// create the map
var map = new T5.Map('mapContainer', {
- renderer: settings.renderer || 'canvas',
+ renderer: 'raphael',
drawOnMove: settings.drawOnMove,
drawOnTween: settings.drawOnTween
});
View
6 dist/tile5.cloudmade.js
@@ -6984,9 +6984,9 @@ var Interact = INTERACT = (function() {
} // handleDetach
function handlePointerDown(evt, absXY, relXY) {
- // if (this !== zoomBar) { return; }
+ if (this !== zoomBar) { return; }
- var targetCode = updateSpriteState(evt.target, STATE_DOWN);
+ var targetCode = updateSpriteState(evt.target || evt.srcElement, STATE_DOWN);
_moveOK = targetCode === _targetThumb;
} // handlePointerDown
@@ -7000,7 +7000,7 @@ var Interact = INTERACT = (function() {
} // handlePointerMove
function handlePointerUp(evt, absXY, relXY) {
- var handler = tapHandlers[updateSpriteState(evt.target, STATE_STATIC)];
+ var handler = tapHandlers[updateSpriteState(evt.target || evt.srcElement, STATE_STATIC)];
if (handler) {
handler();
}
View
6 dist/tile5.js
@@ -6984,9 +6984,9 @@ var Interact = INTERACT = (function() {
} // handleDetach
function handlePointerDown(evt, absXY, relXY) {
- // if (this !== zoomBar) { return; }
+ if (this !== zoomBar) { return; }
- var targetCode = updateSpriteState(evt.target, STATE_DOWN);
+ var targetCode = updateSpriteState(evt.target || evt.srcElement, STATE_DOWN);
_moveOK = targetCode === _targetThumb;
} // handlePointerDown
@@ -7000,7 +7000,7 @@ var Interact = INTERACT = (function() {
} // handlePointerMove
function handlePointerUp(evt, absXY, relXY) {
- var handler = tapHandlers[updateSpriteState(evt.target, STATE_STATIC)];
+ var handler = tapHandlers[updateSpriteState(evt.target || evt.srcElement, STATE_STATIC)];
if (handler) {
handler();
}
View
6 dist/tile5.osm.js
@@ -6984,9 +6984,9 @@ var Interact = INTERACT = (function() {
} // handleDetach
function handlePointerDown(evt, absXY, relXY) {
- // if (this !== zoomBar) { return; }
+ if (this !== zoomBar) { return; }
- var targetCode = updateSpriteState(evt.target, STATE_DOWN);
+ var targetCode = updateSpriteState(evt.target || evt.srcElement, STATE_DOWN);
_moveOK = targetCode === _targetThumb;
} // handlePointerDown
@@ -7000,7 +7000,7 @@ var Interact = INTERACT = (function() {
} // handlePointerMove
function handlePointerUp(evt, absXY, relXY) {
- var handler = tapHandlers[updateSpriteState(evt.target, STATE_STATIC)];
+ var handler = tapHandlers[updateSpriteState(evt.target || evt.srcElement, STATE_STATIC)];
if (handler) {
handler();
}
View
6 src/core/controls/zoombar.js
@@ -160,9 +160,9 @@ reg('control', 'zoombar', function(view, panFrame, container, params) {
} // handleDetach
function handlePointerDown(evt, absXY, relXY) {
- // if (this !== zoomBar) { return; }
+ if (this !== zoomBar) { return; }
- var targetCode = updateSpriteState(evt.target, STATE_DOWN);
+ var targetCode = updateSpriteState(evt.target || evt.srcElement, STATE_DOWN);
_moveOK = targetCode === _targetThumb;
} // handlePointerDown
@@ -176,7 +176,7 @@ reg('control', 'zoombar', function(view, panFrame, container, params) {
} // handlePointerMove
function handlePointerUp(evt, absXY, relXY) {
- var handler = tapHandlers[updateSpriteState(evt.target, STATE_STATIC)];
+ var handler = tapHandlers[updateSpriteState(evt.target || evt.srcElement, STATE_STATIC)];
if (handler) {
handler();
}
Please sign in to comment.
Something went wrong with that request. Please try again.