We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tm.app.Object2d に draggable 機能を持たせる.
tm.app.Object2d
draggable
setDraggable(flag) でドラッグ有効/無効を切り替える
setDraggable(flag)
dispach event list
dragstart
drag
dragend
setDraggable(true)
setInteractive(true)
tm.input.Touch.deltaPosition
drop
setDroppable(true)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
tm.app.Object2d
にdraggable
機能を持たせる.setDraggable(flag)
でドラッグ有効/無効を切り替えるEvent
dispach event list
dragstart
drag
dragend
Memo
setDraggable(true)
すると内部でsetInteractive(true)
も呼ぶtm.input.Touch.deltaPosition
)の値をキャッシュしてタッチ終了後はその平均値で慣性っぽく止まるようにするFeature
drop
イベントとか発行させられるようにすると良いかも. (setDroppable(true)
)The text was updated successfully, but these errors were encountered: