Hi Rudi,

The content height of the web page equals to the height of the SilicaWebView. 
Thus, there is nothing to pan/flick. If you decrease height of the 
SilicaWebView, content becomes to be a pannable. Also notice that virtual 
keyboard will alter the height of the SilicaWebView if binding is like it is at 
below.


Page {

    id: page

    SilicaWebView {

        url: "https://www.messenger.com/login";<https://www.messenger.com/login>

        width: parent.width
        height: parent.height / 2
    }
}


If you are looking for programmatic scrolling from qml code -- not initiated by 
user. You have two options (at least):

1) Use contentX and contentY of the SilicaWebView (not animated)
2) Use flick(xVelocity, yVelocity) of the SilicaWebView, velocity is 
pixels/sec. (similar to user initiated flick)

Hope this helps,
Raine
________________________________
Lähettäjä: [email protected] 
[[email protected]] käyttäjän Rudi Timmermans 
[[email protected]] puolesta
Lähetetty: 7. kesäkuuta 2015 18:43
Vastaanottaja: [email protected]
Aihe: [SailfishDevel] SilicaWebView

Hi,

I like to using scroll on the webpage i using in my qml code.

This is the code, i have try already many thing i have found but i can not get 
it on working ...


Page {

    id: page

    SilicaWebView {

        url: "https://www.messenger.com/login";<https://www.messenger.com/login>

        anchors.fill: parent

        overridePageStackNavigation: true

        experimental.preferences.developerExtrasEnabled: true

Do have anyone a idea the fix this ?

Thanks!



--
---
Best regards!

Rudi Timmermans.
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to [email protected]

Reply via email to