Coder Social home page Coder Social logo

Click on image to step about reel HOT 5 CLOSED

pablosbrain avatar pablosbrain commented on September 26, 2024
Click on image to step

from reel.

Comments (5)

pisi avatar pisi commented on September 26, 2024

Nice one, Pablo! Interesting suggestion, indeed. Thank you very much for it. It fits very nicely my future vision of Reel. I also expect some UI elements like arrow buttons sticked to both left and right edges of the image to visually support such possibility. Stay tuned for future versions. It probably won't be inside the upcomming patch release 1.1.1, but it certainly will be in 1.2.

from reel.

pisi avatar pisi commented on September 26, 2024

The implemented a solution for this feature request, that has two distinct aspects:

  1. As @pablosbrain requested the entire image area is now clickable and depending on the click position relative to the image center, it triggers either "stepLeft" or "stepRight" event. This is enabled by default and can be disabled by setting new option steppable to false.
  2. And that brings us to the new events - "stepLeft" and "stepRight". These two when .trigger()ed they advance Reel instance one frame left or right. Events are available even when steppable: false.

from reel.

pisi avatar pisi commented on September 26, 2024

The code was merged into development branch

from reel.

pisi avatar pisi commented on September 26, 2024

Gregory Stewart reported: "one thing I noticed with the stepping is that when I use it with the option to reverse the direction of my slides ({cw : true}) the built-in stepping ignores it and uses the default direction."

from reel.

pisi avatar pisi commented on September 26, 2024

I'm a bit baffled by Greg's report, because as far as I tested it, if setup right, if clicking the left half causes a default counterclockwise motion and vise versa. If cw: true the reaction is the same - left click for counter-clockwise. So it works just as expected.

I think it may be just a matter of cw option misuse. The cw option is not for reversing the direction. It is there to tell Reel in what manner you have your shots organized, how (in which direction) you took your pictures. You can not deliberatly change this value as it is either this or that depending on the images. Reel assumes a counter-clockwise order of the frames. Rule of the thumb is, that when you setup your Reel and while dragging, the object or the scene does not follow the mouse when dragged, you need to use the cw option to correct Reel's assumption.

from reel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.