Closed yoyurec closed 9 years ago
When you use fixed width & margin: 0 auto for body in layout there is an issue: Clicking on empty areas (target - html) doesn't not fire tap event, b'cose they are not in listen scope (body).
margin: 0 auto
tap
Just replace document.body to document.documentElement! https://github.com/pukhalski/tap/blob/master/dist/tap.js#L73 https://github.com/pukhalski/tap/blob/master/dist/tap.js#L141
document.body
document.documentElement
https://github.com/pukhalski/tap/pull/26
Thanks, merged.
When you use fixed width &
margin: 0 auto
for body in layout there is an issue: Clicking on empty areas (target - html) doesn't not firetap
event, b'cose they are not in listen scope (body).Just replace
document.body
todocument.documentElement
! https://github.com/pukhalski/tap/blob/master/dist/tap.js#L73 https://github.com/pukhalski/tap/blob/master/dist/tap.js#L141