1

如果我只是使用 webview 来包含我的网站,我将无法平滑滚动。
由于Jelly Bean webview 没有平滑滚动建议,我检查了我使用 javascript 拥有的任何 jQuery 绑定事件。

我注意到所有绑定事件(弹出,可扩展列表)都可以,除了以下滑动事件:

$( document ).on( "swipeleft", page, function() {
        $( page ).cjSwipe( 'on', function(swipeLeft) { // this is a mobile plug-in to disable swipe on desktop
            document.location.href = next + ".html";
        });
})

所以我的问题是我是否可以同时拥有平滑滚动和滑动,或者我必须牺牲一个来获得另一个?感谢您的任何帮助/建议。

4

1 回答 1

0

I had this problem already and solved it this way:

in OnGestureListener in onFling method return false instead of true or other!

于 2017-01-02T14:13:27.890 回答