Open GoogleCodeExporter opened 9 years ago
I found out that I have to merge the "toggle button" function and "page
navigation"
functions together into 1 "touchend" function, because calling preventDefault
on 1
stops the other from working.
Also, clicking on the links and buttons to navigate the page causes Safari to
put a
small grey box around it which is ugly. To remove the boxes, I added this to
iui.css:
.button {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body > ul > li > a {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.toggle {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
input:not(input[type|=radio]):not(input[type|=checkbox]) {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
Original comment by tyu...@gmail.com
on 29 Jul 2009 at 12:00
Here's a diff for the CSS changes above.
Original comment by tyu...@gmail.com
on 1 Aug 2009 at 3:27
Attachments:
Here's a diff for the javascript changes above.
Instead of modifying the original onclick event, I made a separate handler that
complements it. That way, it will still function in a non-touch environment (a
la
iPhone 1.0)
Original comment by tyu...@gmail.com
on 4 Aug 2009 at 2:36
Attachments:
It appears recently Google's Gmail webapp was changed (new theme) and their
message list was
changed to respond to ontouchend which makes it much more responsive. However I
don't know why
they only changed the message list but didn't change the buttons and menus,
which rely on the slower
onclick.
Original comment by tyu...@gmail.com
on 24 Nov 2009 at 3:24
Original issue reported on code.google.com by
tyu...@gmail.com
on 29 Jul 2009 at 8:43