Giter Site home page Giter Site logo

Comments (4)

Outpox avatar Outpox commented on August 16, 2024

Hi there,
This was something we didn't think about, and I do like the idea to fire the events when a tour is in progress rather than no check at all.
@mmorainville your input would be interesting :)

from vue-tour.

mmorainville avatar mmorainville commented on August 16, 2024

Indeed, it's a great idea! Thanks @zanedev for the input.
However we have to think of every use case, wouldn't be a problem if one day we want to make a hook available when the tour is not started yet or when the tour is finished?
For example beforeStart and afterEnd callbacks?

Otherwise the namespace would also be a good idea, we should take a closer look and make some tests.

from vue-tour.

buksy90 avatar buksy90 commented on August 16, 2024

Hi there, its been two years since the bug has been reported and it is still present :) .

I think it would be enough to move window.addEventListener('keyup', this.handleKeyup) from mounted() to start()

from vue-tour.

mmorainville avatar mmorainville commented on August 16, 2024

Hi @buksy90,

Indeed we are at the same too cautious to add features without thorough thinking (to avoid regressions or breaking changes) and too busy on other projects to keep track of old issues like this one.

But in this case as you said, it should be enough to move the listener in the start() method (and thus to remove the listener in the stop method). Unless two tours run at the same time... which is not really not recommended but possible and maybe some people do that? But in this case the behavior should be the same as now, so it's not really breaking anyway...

Then, a PR would be welcome on this one, it's a good first issue to start contributing. :)

from vue-tour.

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.