Giter VIP home page Giter VIP logo

Comments (5)

stephband avatar stephband commented on September 26, 2024

What's wrong with using mousedown or touchstart for this purpose?

––––––––––––
http://sound.io
http://cruncher.ch
http://stephen.band

On 26 March 2016 at 23:23, Bortxx [email protected] wrote:

I know it is a feature to not have the 'movestart' event fire until there
is a move but I need that event raised before there is any move for my own
purposes. Looked at the code and there is a threshold value set to 6 which
I thought if I set it to 0 would do the job but no. I even removed the code
in the checkThreshold() that short circuits the function but no luck.

What do I need to do to get the movestart event immediately on pointer
down? or maybe fix it so threshold = 0 behaves as expected.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#29

from jquery.event.move.

Perecli avatar Perecli commented on September 26, 2024

Well, I liked what you did with the unification of events rather than having to deal with touch and mouse events separately and all other idiosyncrasies like 300ms delay, inconsistency between browsers, etc. Also even with threshold set to 0, Abs(e.distY) won't report a value lower than 10 with touch. With mouse it is correct and I get a min of 1. So the touch move is ignored unless we move more than 10 units.

from jquery.event.move.

stephband avatar stephband commented on September 26, 2024

Initialising the bindings for move events without first checking whether we have started moving would be bad for the performance of other, everyday interactions, such as 'click'. Not critically bad, but bad nonetheless. I am not intending to change this.

In other news, jQuery.event.move is now jQuery 3 compatible. This is a first version, so if you have a chance please test and report any problems.

The underlying implementation is now vanilla DOM, so move events can also be used without jQuery.

from jquery.event.move.

Perecli avatar Perecli commented on September 26, 2024

That's OK. I could not deal with the limitations of this API anymore so I moved to jquery/PEP which does what I needed. https://github.com/jquery/PEP

from jquery.event.move.

stephband avatar stephband commented on September 26, 2024

Oh that's pretty cool. I didn't know about that polyfill. I'm going to try
that.

I always considered that move events would be superseded by pointer events,
so maybe that time has come.

On 28 Oct 2016 11:19 p.m., "Bortxx" [email protected] wrote:

That's OK. I could not deal with the limitations of this API anymore so I
moved to jquery/PEP which does what I needed.
https://github.com/jquery/PEP


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#29 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAENngmFy8jaPeeh7Hw6EI8q7EeFzttJks5q4mbPgaJpZM4H5V0q
.

from jquery.event.move.

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.