Giter Club home page Giter Club logo

Comments (6)

brendon avatar brendon commented on July 26, 2024

Perhaps submitting a Pull Request would help speed things along? :) I'm not sure if @isocra is still watching this project but I did manage to get him to merge a PR of mine late last year.

from tablednd.

brendon avatar brendon commented on July 26, 2024

The problem is that fixHooks was removed. I've opened a ticket here as they want to know how it's being used in the wild. Hopefully they'll have some advice on how to properly do this now:

jquery/jquery#3748

from tablednd.

brendon avatar brendon commented on July 26, 2024

Hi @cubiclesoft, I've done a test with just removing that hack entirely with jQuery 3. The DnD works fine on an iPad (emulator) and also in-browser.

@isocra, do you recall what this was added for? I suspect perhaps it has a hack to grab pageX and pageY from event but since that time (according to git blame) you've added:

if (e.originalEvent.changedTouches)
            return {
                x: e.originalEvent.changedTouches[0].clientX,
                y: e.originalEvent.changedTouches[0].clientY
            };

and that properly deals with getting the x and y coordinates of the touch.

I'll do up a PR that just removes this hack. Would you mind merging that for me?

from tablednd.

isocra avatar isocra commented on July 26, 2024

Hi folks,

Sorry, as I'm not using TableDnD at the moment, I don't get much (any) time to fix issues any more. This code was added by a contributor a couple of years ago, in an effort to get touch working better. Looks like it wasn't a good approach.

from tablednd.

cubiclesoft avatar cubiclesoft commented on July 26, 2024

@brendon @isocra - Thanks for following up on this.

from tablednd.

brendon avatar brendon commented on July 26, 2024

Thanks @isocra :) I understand. If you'd like to make me a maintainer on this project I don't mind. I also maintain the acts_as_list rails gem if that helps for credibility.

Yes, it certainly seemed like a bit of a hack :)

from tablednd.

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.