fredleblanc / roundabout

A 3D Turntable jQuery Plugin.
645 stars 205 forks source link

Issues with moveClockwiseThroughBack and moveCounterClockwiseThroughBack #111

Open grassrootsdm opened 11 years ago

grassrootsdm commented 11 years ago

Using jquery 1.9.1 via code.jquery.com and roundabout v 2.4.2 i am not seeing the events fire for the moveCounterClockwiseThroughBack and moveClockwiseThroughBack events.

The roundabout is building and displaying fine, just no event firing. Has it been changed?

Any help would be greatly appreciated.

code to init roundabout.:

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

    });
grassrootsdm commented 11 years ago

I found a workaround using the following: is this the intent?

 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');
    }