Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactiveの仕様変更(DOM風にする) #234

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

simiraaaa
Copy link
Contributor

変更箇所

  • EventDispatcherのfireでtargetが既に存在する場合は、上書きしないようにする
  • マウスカーソルをhoverに変更するかどうかのチェック方法を変更
  • 要素をチェックする順番を逆順に変更
  • pointerイベントが一度発火した場合は、 親要素を辿って root の要素までイベントが発火する
  • pointerイベントが一度発火した場合は、 別の階層構造の要素に対して_checkPointをしない (重なった要素の一番上のみが発火する)
  • イベント処理中にイベントオブジェクトの stop フラグを true にすると、それ以上は親要素へイベントが伝播しない (e.stop = true)
  • イベント処理中にイベントオブジェクトの pass フラグを true にすると、別の階層構造の要素に対して、_checkPointをする (e.pass = true で 要素が重なってる場合でも、後ろの要素に対してイベントが発火する)
  • clickで重なった要素の要素のイベントを発火させるには pointstarte.pass = true にする

テストの追加変更

  • prepare機能を追加 (同じ describe の中で共通のコードを埋め込める)
  • Interactiveのテストを追加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant