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

Event cleanup #137

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Event cleanup #137

wants to merge 11 commits into from

Conversation

rksm
Copy link
Member

@rksm rksm commented May 11, 2013

This is a larger code cleanup and gets rid of lively.EventExperiments.

With evt.getTargetMorph() we get a fast and central mechanism to lookup morphs that are event targets. This allows to put "meta event handling" (halos, "that", drag dispatch, etc.) in the mouse down/up/move handlers of the World which considerably frees the default mouse(down/up)entry methods of Morph.

Caveat, though: This mechanism uses the DOM (which makes it fast) and does not consider specific Morphic handling. E.g. when "grabbing" a morph and trying to find a drop target for it this mechanism can not be used because the grabbed morph will "block" other morphs. For this we still need #morphsContainingPoint.

@rksm
Copy link
Member Author

rksm commented Jan 21, 2014

Hmm this still needs to be done. I remember that the changes required to get rid of EventExperiments.js were more complicated than I expected. The tricky part is to translate the morphic locking behavior so that no layers are used.

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.

None yet

1 participant