instinct / GameFroot

GameFroot iOS and Bundlenator
www.gamefroot.com
5 stars 0 forks source link

layerX & layerY are used extensively in the character creator #288

Closed marsh0lion closed 12 years ago

marsh0lion commented 12 years ago

layerX & layerY do not work in IE (and are being phased out in Chrome) - use the following code instead (and offsetX & offsetY don't work in firefox):

path = new Object(); path.x = parseInt(event.originalEvent.offsetX / 48); path.y = parseInt(event.originalEvent.offsetY / 48);

if (isNaN(path.x) || isNaN(path.y)) { // handle some firefox weridness path.x = parseInt(event.originalEvent.layerX / 48); path.y = parseInt(event.originalEvent.layerY / 48); }

InstinctBrett commented 12 years ago

Fixed by updating character creator to jQuery 1.7.1