Skip to content

Layer的autoHide流程设计的不科学 #16

Description

@mytharcher

当需要点击一个按钮然后show一个layer的时候,必须让开发者主动去调用layer._preventHide()这种隐藏接口,否则show了还会被render就绑定的document点击事件给hide掉。

就个人理解,autoHide相关的事件绑定应该放在show之后去做,而且必须是临时的,即在hide之后取消绑定。而不应该让使用者主动的去了解当前是何种场景及显示状态来做额外的适应操作,应该对使用者保持简单透明。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions