[ https://issues.apache.org/jira/browse/CB-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Van Wicklen reopened CB-1247: --------------------------------- I tried adding the following event handlers to my application code: document.addEventListener("mousemove", function(e){e.preventDefault();}); document.addEventListener("touchmove", function(e){e.preventDefault();}); Strangely enough, this code tends to suppress the bounce but it does not eliminate it. In some ways the final result is worse, as it makes the app appear glitchy. Sometimes move/drag events will be ignored, but often times the canvas will still move and bounce back into place. This experience is bad enough that I wouldn't ship my application on Windows Phone like this. A fixed canvas is essential to my app's experience. > An option similar to "webviewbounce" is needed that works on Windows Phone > -------------------------------------------------------------------------- > > Key: CB-1247 > URL: https://issues.apache.org/jira/browse/CB-1247 > Project: Apache Cordova > Issue Type: Bug > Components: WP7 > Affects Versions: 2.0.0 > Environment: Windows Phone > Reporter: Rob Van Wicklen > Assignee: Jesse MacFadyen > Fix For: 2.1.0 > > > A "webviewbounce" option can be set to fix an app's viewable area in place on > the iOS screen, making it so that users cannot drag it and move it off the > side of the screen. A similar setting is needed for Windows Phone. > Currently, even if the viewport size is set to the device screen dimensions > and the scale is fixed at 1.0, Windows Phone users can still drag the app's > viewport which results in a bounce effect similar to what's seen on iOS when > the webviewbounce option isn't set to false. > The Windows Phone WebBrowser control doesn't directly expose a property that > lets you eliminate the bounce, but the desired result can be acheived with a > small amount of wrapper code around the control. This would need to be > implemented within Cordova. The following article explains how to do it: > > http://www.scottlogic.co.uk/blog/colin/2011/11/suppressing-zoom-and-scroll-interactions-in-the-windows-phone-7-browser-control > Justification: the ability to eliminate the bounce effect is important for > app developers who want to create an experience that's similar to a native > app. This is not currently possible on Windows Phone. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira