Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Hi, I am working on website which works well with javascripts touch events on Default Motorola Xoom browser, when it comes to Firefox 8 or Beta version it doesn't even receives touch events

  • 1 ответ
  • 1 имеет эту проблему
  • 4 просмотра
  • Последний ответ от Matt Brubeck

more options

code:

if ("touchstart" in document) {

   btn.addEventListener("touchstart", function(evt){ alert("foo");}, false);

}

it works on Motorola Xoom default browser, but not in Firefox 8 and Beta Versions.

code: if ("touchstart" in document) { btn.addEventListener("touchstart", function(evt){ alert("foo");}, false); } it works on Motorola Xoom default browser, but not in Firefox 8 and Beta Versions.

Все ответы (1)

more options

Try using ("createTouch" in document) for your feature detection. That should work in all versions of Firefox, as well as other browsers.

("touchstart" in document) does not work in any version of Firefox, but ("ontouchstart" in document) will work in Firefox 9 and later: https://bugzilla.mozilla.org/show_bug.cgi?id=697002