pisi / Reel

The premier 360° solution for jQuery.
http://reel360.org
MIT License
690 stars 210 forks source link

Dragging within a range of sequence #323

Open zeos opened 7 years ago

zeos commented 7 years ago

What an amazing piece of software! Thank you! A quick question about dragging [forward/backward] within a range of sequence? I set the frame and frames, but when I drag left/right it goes beyond the range? I have a long sequence and I want to switch the ranges based on annotations (I just hooked a Click event to set different ranges - frame/frames). What would you suggest as an approach to achieve such behavior? Thank you for your time developing it and for answering.

here my setup:

$('#image').reel(
            {
                    annotations:    hotSpots,
                    brake:          0.4,
                    speed:          0,
                    cursor:         'hand',
                    frame:          1,
                    frames:         30, //here I want to manipulate only 30 of them
                    loops:          false,
                    directional:    true,
                    responsive:     true, 
                    draggable:      true,
                    wheelable:      false,
                    throwable:      false, //didn't understand what is doing this option
                    cw:             false, 

                    images:         "###.jpg|001..123" //yes, there are in total 123 images

            });

            $('#hotSpot1').on('click', function() { changeReelRange(30, 60)});

best, Zeos