Mobile Touch Events in MooTools 1.3

Mobile Touch Events

  • touchstart
  • touchmove
  • touchend
  • touchcancel
  • gesturestart
  • gesturechange
  • gestureend
  • orientationchange

Browser.Platform

  • Browser.Platform.mac - (boolean) True if the platform is Mac.
  • Browser.Platform.win - (boolean) True if the platform is Windows.
  • Browser.Platform.linux - (boolean) True if the platform is Linux.
  • Browser.Platform.ios - (boolean) True if the platform is iOS.
  • Browser.Platform.android - (boolean) True if the platform is Android
  • Browser.Platform.webos - (boolean) True if the platform is WebOS
  • Browser.Platform.other - (boolean) True if the platform is neither Mac, Windows, Linux, Android, WebOS nor iOS.
  • Browser.Platform.name - (string) The name of the platform.

Browser.isMobile

Browser.isMobile = ![mac,linux,win].contains(Browser.Platform.name);