Giter Site home page Giter Site logo

fsm's People

Contributors

yhanwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fsm's Issues

动画导致的问题

由于有动画,当点击过快时,组件会失去响应(假死)。

例: 点击组件,在组件展开的动画过程中,迅速点击页面其他区域。

一种简单的办法是:增加组件标示(动画状态)如:

fold:function(){
            var _this = this,
            options = _this.options,
            slideBox = _this.slideBox;
            if(!_this.animating&&_this.isFold)return;
            D.removeClass(options,"hover");

            S.one(slideBox).slideUp(0.2,function(){
                _this.isFold = true;
                _this.animating = false;
            });
            _this.animating = true;
        }

另外一种应该 可以把动画也作为一种状态吧。?

有没有考虑过吧状态机和CSS的增强一起考虑过呢?

hi,您好,看到你这个项目,比较感兴趣.因为我也曾有过类似的想法.

不过,我不看好javascript的表现方法, 他对状态和行为的描述太灵活和复杂化.
我比较看好这种**和css的语法增强.如果有兴趣,欢迎和我联系:
gtalk: jindw#xidea.org

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.