默认为擦拭使用jQuery touchwipe一些湿巾 [英] Default wipe for some wipes using jQuery touchwipe

查看:156
本文介绍了默认为擦拭使用jQuery touchwipe一些湿巾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用这样好的插件来捕捉抹在移动设备上的事件:<一href="http://www.netcu.de/jquery-touchwipe-iphone-ipad-library">http://www.netcu.de/jquery-touchwipe-iphone-ipad-library

I'm using this wonderful plugin to capture wipe events on mobile devices: http://www.netcu.de/jquery-touchwipe-iphone-ipad-library

我使用该页面的源代码中的code,让我的图片库单车理所应当的。然而,我的图片库是屏幕的整个宽度。不幸的是,touchwipe似乎是preventing默认上下擦拭物从上下滚动的页面。有没有一种方法,以使其使用时规定的其他行为,除了默认行为,?

I'm using the code in the source of that page to get my image gallery cycling as it should be. However, my image gallery is the full width of the screen. Unfortunately, touchwipe seems to be preventing the default up and down wipes from scrolling up and down the page. Is there a way to make it use the default behaviour, except when other behaviour is specified?

$(document).ready(function() {
    $('#imagegallery').cycle({
        timeout: 0,
        fx: 'scrollHorz',
        next: '#next',
        prev: '#prev' 
    });

    $("#imagegallery").touchwipe({
        wipeLeft: function() {
            $("#imagegallery").cycle("next");
        },
        wipeRight: function() {
            $("#imagegallery").cycle("prev");
        }
    });
});

我也开放给其他的替代品,以达到同样的效果(其他插件,其他方法)。谢谢!

I'm also open to other alternatives to achieving this same effect (other plugins, other methods). Thanks!

推荐答案

我找到了一个暂时的答案部分作品,在这里找到:的 http://plugins.jquery.com/content/vertical-scroll

I've found a temporary answer that partially works, found here: http://plugins.jquery.com/content/vertical-scroll

这将是很好的得到一个更好的答案,但。

It would be good to get a better answer though.

这篇关于默认为擦拭使用jQuery touchwipe一些湿巾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆