davidcalhoun / energize.js

A tiny JavaScript snippet to make links snappy on touch devices
MIT License
182 stars 30 forks source link

html5 video controls don't work in Chrome on Android 4 #18

Open krzysu opened 11 years ago

krzysu commented 11 years ago

Hi, I've just tested video element in many mobile android browsers and I cannot click/touch any video control only in Chrome mobile browser (v. 27.0.1453.90). But video works fine for Firefox, Dolphin, Opera and default Android browser (all on Galaxy Nexus, Android 4.2.2).

krzysu commented 11 years ago

the quick fix I found is to disable energize fo video elements:

touchend = function(e) {
  (..)
  if(e.target.nodeName == 'VIDEO') {
    return;
  }
  (..)
}
teusink commented 11 years ago

Make it to this when you want to exclude audio controls also (same "bug").

if(e.target.nodeName == 'VIDEO' || e.target.nodeName == 'AUDIO') { return; }