ios - YUI panel buttons (click events) broken after adding tap event listeners -
preface: introducing yui3 delegated on-tap events has seemed broken on-page default click events... buttons, input-field editing, radio button selection, etc. worked fine before... did include event-tap
module in couple of relevant yui calls wherever need delegate on-tap event.
details: web app has used on both pc , touchscreen devices. versions supported on-"click" event listener delegation, worked fine (even on touch devices). now, i'm migrating using more proper on-"tap" event listeners whenever yui.env.ua.touchenabled
true. but, since i've made update, none of normal "click" events working right on ipad air (safari ios 7.1.1) ~ while working fine on ipod touch (safari ios 6.1.3). , "normal click event" mean simple/standard buttons, fields, , elements default click behavior baked them (as mentioned in preface above).
web-app description: sorry, app pretty big , complext include code here; but, basically, have dynamic list of items (ul
/li
) i've used yui3's event delegation define on-click subscriptions to. so, whenever user clicks/taps item, yui-panel supposed show. panel has few buttons , text fields on it. worked beautifully until introduced event-tap stuff.
so... know whether known bug or something? couldn't turn online in searches. click works fine on pc , older mobile-safari (even tap stuff included)... not on newest mobile safari.
after chatting yui team on irc, suggested migrate using hammer.js instead of yui events module. engineer heads integration of hammer yui indicated hammer lot improve @ managing cross-platform gesture/touch events. i'm still trying integrate version working (it included in yui, - maybe late summer 2014), , since there's no native yui solution, i'm marking answered.
hammer git: https://github.com/eightmedia/hammer.js
yui's work @ integration: https://github.com/tilomitra/yui-hammer
ios javascript-events mobile-safari yui event-delegation
No comments:
Post a Comment