cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <>
Subject [jira] [Resolved] (CB-1247) An option similar to "webviewbounce" is needed that works on Windows Phone
Date Fri, 15 Nov 2013 23:29:22 GMT


Jesse MacFadyen resolved CB-1247.

    Resolution: Won't Fix

It is not possible to both have mouse interactivity, and fix the page in place.
There are a couple workarounds that address certain parts of the issue, but none that address
it entirely.
To lock the view on WP7, use the following in CordovaView.xaml.cs
this.CordovaView.DisableBouncyScrolling = true;
To lock the view in WP8 use the ms css solution:
<body style="-ms-touch-action:none;">

> An option similar to "webviewbounce" is needed that works on Windows Phone
> --------------------------------------------------------------------------
>                 Key: CB-1247
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7, WP8
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0
>         Environment: Windows Phone
>            Reporter: Rob Van Wicklen
>            Assignee: Jesse MacFadyen
> 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:
> 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 was sent by Atlassian JIRA

View raw message