GithubHelp home page GithubHelp logo

发现一个小bug about gangedrecyclerview HOT 4 CLOSED

wustor avatar wustor commented on August 23, 2024
发现一个小bug

from gangedrecyclerview.

Comments (4)

wustor avatar wustor commented on August 23, 2024

最近在忙着换工作的事情,这个问题我记下来了,我抽空看一下,谢谢提醒

from gangedrecyclerview.

Liby94 avatar Liby94 commented on August 23, 2024
else
{
 if (isMoved) {
        isMoved = false;
  } else
        mSortAdapter.setCheckedPosition(position);
        ItemHeaderDecoration.setCurrentTag(String.valueOf(position));//如果是滑动右边联动左边,则按照右边传过来的位置作为tag
}

在MainActivity类中这个isMoved个人猜测是为防止左侧点击后右侧的列表滑动做的一个处理。但是这个会消费掉下一个滑动的对应关系。
改成下面应该也没问题吧?

else
{
        mSortAdapter.setCheckedPosition(position);
        ItemHeaderDecoration.setCurrentTag(String.valueOf(position));//如果是滑动右边联动左边,则按照右边传过来的位置作为tag
}

from gangedrecyclerview.

shiner0 avatar shiner0 commented on August 23, 2024

楼主在吗,demo中发现一个小bug 点击选中左侧的某一项,然后缓慢滑动右侧的列表,当右侧列表滑动到下一项时,左侧的下一项并不会被选中,继续滑动到下一项,左侧选中状态才恢复正常 @wustor 这个问题没有修复

from gangedrecyclerview.

wustor avatar wustor commented on August 23, 2024

问题定位到了,这种情况只有当左侧先被点击后,再缓慢滑动右侧才会出现,今天尝试复现了,已经修复了,抱歉这么久才回复。详见commit点05fe2b4f9583e30fb0c7934d158dd91630802327

from gangedrecyclerview.

Related Issues (14)

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.