0

我遇到了回旋处不触发moveClockwiseThroughBackmoveCounterClockwiseThroughBack回调的问题。该网站没有提供任何使用中的示例,所以我想知道是否有人对此有任何经验。

这是我用来初始化回旋处的代码,唯一的问题是它们不会触发函数。

jQuery 版本:1.9.1 通过 CDN Roundabout 版本 2.4.2 通过 localhost

   $('#cellWrapper').roundabout({
    childSelector: 'div',
    duration: 400,
    easing: 'easeOutQuad',
    enableDrag: true,
    dropEasing: 'easeOutBounce',
    triggerFocusEvents: true,
    moveClockwiseThroughBack: function () {
        console.log('ye');
    },
    moveCounterClockwiseThroughBack: function () {
        console.log('ye');
    },
});
4

1 回答 1

0

I have found the following code to work properly, however i was unsure if it was meant to be set as such.

     var Blah = $('#cellWrapper').roundabout({
    childSelector: 'div',
    duration: 400,
    easing: 'easeOutQuad',
    enableDrag: true,
    dropEasing: 'easeOutBounce',
    triggerFocusEvents: true
});

Blah.bind('moveClockwiseThroughBack', FireBack);

function FireBack () {
    console.log('ye');
}
于 2013-04-23T19:28:21.790 回答