Git Product home page Git Product logo

Comments (6)

XiaMuYao avatar XiaMuYao commented on August 10, 2024 1

昨天这个问题一直没找到 加班到2点,还好今天发现了

from switchbutton.

yytyxj avatar yytyxj commented on August 10, 2024

我也碰到了,是它动画没做完,然后有重复,最终结果出问题了。可以考虑设置动画时间非常短看看

from switchbutton.

XiaMuYao avatar XiaMuYao commented on August 10, 2024

我也遇到了,

from switchbutton.

zcweng avatar zcweng commented on August 10, 2024

from switchbutton.

XiaMuYao avatar XiaMuYao commented on August 10, 2024

是啊,我发现了 0.3s 以内的问题,但是问题应该在于
if(isChecked()){ //切换到unchecked setUncheckViewState(afterState); }else{ setCheckedViewState(afterState); }
前后两次都是一样的,因为没有修改 afterState 如果我们直接把状态设置好,让动画强制执行就不会有这个问题了

from switchbutton.

threedeer avatar threedeer commented on August 10, 2024

请问这个问题怎么修改呢?

from switchbutton.

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.