Mathias Panzenböck avatar Mathias Panzenböck committed a59b4dc

don't load move_and_resize.js on touch devices

Comments (0)

Files changed (2)

javascripts/magnatune.js

 // If installed as Chrome app window.moveTo and window.resizeTo are not blocked
 // and it makes sense to implement custom move/resize so the player can be used
 // without window decoration. This does not work for Firefox apps, though.
-if ((!window.matchMedia || window.matchMedia("not handheld").matches) &&
+if (!Magnatune.BrowserFeatures.TouchDevice &&
+	(!window.matchMedia || window.matchMedia("not handheld").matches) &&
 	$.window.outerHeight() - $.window.innerHeight() < 62 &&
 	window.chrome && window.chrome.app && window.chrome.app.isInstalled) {
 	$.ajax('javascripts/move_and_resize.js',{dataType:'script',cache:true});
 {
   "name": "GreattunePlayer",
   "subdomain": "greattuneplayer",
-  "version": "0.1.0-157",
+  "version": "0.1.0-159",
   "author": "Mathias Panzenböck",
   "description": "This is a HTML5 audio player based on the music from Magnatune.com",
   "bin": {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.