Jump to content

Crosswalk issues


gianthead
 Share

Recommended Posts

I'm wrapping my Phaser game using Crosswalk to deploy to Android. Ran into 2 issues that I haven't found any good ways to resolve through searching online. If you anyone has any advice, it would be greatly appreciated.

 

Issues:

 

1. How do I disable "pull down to refresh"?  There are some suggestions on stackoverflow for capturing touch events on the html page but these would have to go into every page and disrupt normal handling of other touch events. Is there a way to just disable it for the runtime period?

 

2. Orientation lock doesn't seem to work.  I tried setting it via manifest.json, via commandline, and in code using window.screen.lockOrientation. Not sure if this is an Android 5.0 issue. Anyone else seen this? 

 

 

Link to comment
Share on other sites

If you're used to cordova, you can now use it and crosswalk as a pluggable webview, by installing it as a cordova plugin. It might help you in the future as cordova has some nice features. (pull-to-refresh is disable by default too)

 

1/ I don't know about crosswalk, have you tried putting a flag like "--disable-pull-to-refresh" when using make_apk.py ? I suppose there must be something like that.

 

2/ What your manifest.json looks like ? You can lock the orientation with this line "orientation": "portrait"

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...