Giter Site home page Giter Site logo

Taphold about jqm-calendar HOT 2 CLOSED

jwgmeligmeyling avatar jwgmeligmeyling commented on June 24, 2024
Taphold

from jqm-calendar.

Comments (2)

jwgmeligmeyling avatar jwgmeligmeyling commented on June 24, 2024
  1. event.preventDefault() should be enough to stop most browsers from showing context menu's. However there are some tricks and OS version specific things. So the scenario is really important, I suggest to create a JSFiddle or something and post it here or on StackOverflow.

  2. The tap/click handlers are not supplied with a date, since they are not events the calendar triggers. In line 152 the click handler is bound to the cells, which then trigger a change event with the date. If you want this to act on taphold, you could add this logic there (instead of or next to where the click handler is attached).

Another option might be to listen for changes caused by clicks with the existing change event, then store this in a variable and use this in your taphold handler.

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

Thanks Jan

  1. Tried all but no luck. I decided to change in your library from "a" to "button": this does not trigger the browser menu on mobile devices

  2. Added a taphold event which provide the date

I made both change but I'm not sure how to pull them... maybe you have to check the actual pull request?

Thanks a lot!

from jqm-calendar.

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.