Giter VIP home page Giter VIP logo

Comments (3)

iamcam avatar iamcam commented on August 24, 2024

I'm experiencing this as well... "tested" it extensively and kind of figured out what's going on. For each row that's scrolled out of view, the cell gets animated to the new position one row lower than where you let go, but snaps immediately to where you wanted it. Scroll the first two rows out and the cell will get placed two rows down then snapped into position. Three... three rows down, etc.

The misplacement occurs in -moveActionGestureRecognizerStateChanged at the UIGestureRecognizerStateEnded case. I'm sure it's just some kind of math thing on the destination frame vs scrolled distance.

from aqgridview.

emrosenf avatar emrosenf commented on August 24, 2024

iamcam is right. I fixed this for myself earlier:

f.origin.y = r.origin.y + floorf((r.size.height - f.size.height) * 0.5)-self.gridView.contentOffset.y;

from aqgridview.

iamcam avatar iamcam commented on August 24, 2024

I'll get a pull request in on that.

from aqgridview.

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.