Code Monkey home page Code Monkey logo

Comments (5)

straydogstudio avatar straydogstudio commented on June 17, 2024

I guess that doesn't hurt to fire that event. The thing is, nothing has moved. But I can see the value of having a single event fire in both instances. (I'll probably do it anyway, but it is worth thinking about.) Can you think of any situations where this would not be desirable?

from film_roll.

prashantsani avatar prashantsani commented on June 17, 2024

Hey!
Thanks for the reply.
We have a thumbnail carousel, and whenever a new item triggers, we change the background and the text via ""film_roll:moved"".

So, i have edited my previous pens to show the effect that we have in our code, "film_roll:moved".

http://codepen.io/Prashantsani/pen/emoXGO
http://codepen.io/Prashantsani/pen/WbWmZY

(instead of "film_roll:moved" we can also have something like "film_roll:change" )

Thanks,

from film_roll.

straydogstudio avatar straydogstudio commented on June 17, 2024

That's true, we could add another event that would always happen.

from film_roll.

prashantsani avatar prashantsani commented on June 17, 2024

Is there any workaround for this?
I have added the code for "film_roll:moved" in the click handler event.

Here is codepen :
http://codepen.io/Prashantsani/pen/WbBwPX
(it works fine.....but it fires twice, if the carousel width is smaller then number of items in it)

from film_roll.

straydogstudio avatar straydogstudio commented on June 17, 2024

Fixed with 0.1.16

from film_roll.

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.