Giter Site home page Giter Site logo

Disabling navigation about flowtime.js HOT 4 CLOSED

rileytg avatar rileytg commented on June 28, 2024
Disabling navigation

from flowtime.js.

Comments (4)

marcolago avatar marcolago commented on June 28, 2024

Hi.

Thanks for the request because you let me notice that I didn't implemented two public methods for getting the current page and section elements which are useful in this case.

I've build an example that shows what you need in your example (if I understand correctly).
It's not reccommended to hack Flowtime with empty sections or pages but you can achieve the same result implementing a little logic of your own.

You can take a look at the example here: http://flowtime-js.marcolago.com/examples/sub-pages-demo/
and look at the comments in the source code of the index.html page to understand what happens.

Let me know if this solves your problem and be sure to take the last version of Flowtime from github to use the getPage API.

Thanks.

from flowtime.js.

rileytg avatar rileytg commented on June 28, 2024

EXACTLY! I had already done some tomhackery on it to get the sections shenanigans i was proposing to work but it was leading to a rabbit hole of issues.

This solution work perfect in browser but falls apart mobile. Ill debug, fork and create a PR for the example page once i get it working.

Thanks for your help.

from flowtime.js.

marcolago avatar marcolago commented on June 28, 2024

Ops. Sorry but I've non optimized the example to work on touch devices.
Now I've fixed the code adding the correct "touchend" event listener and all is working fine.

Thanks for the feedback.

from flowtime.js.

rileytg avatar rileytg commented on June 28, 2024

Awesome, thanks gonna close this

from flowtime.js.

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.