incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-1247) An option similar to "webviewbounce" is needed that works on Windows Phone
Date Fri, 17 Aug 2012 01:00:39 GMT

     [ https://issues.apache.org/jira/browse/CB-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesse MacFadyen resolved CB-1247.
---------------------------------

    Resolution: Invalid

Scrolling can be prevented by adding JS to handle the interaction:

The following code will prevent the document from scrolling when dragged, yet still allow
you to have mouse interactions in other areas of the page.
document.addEventListener("mousemove", function(e){e.preventDefault();});

You can use a library like iScroll to have a scroll-able area + fixed position elements. 
                
> 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

        

Mime
View raw message