Skip to content

Brush extents fire events fix#338

Open
Git-me-outta-here wants to merge 2 commits into
syntagmatic:masterfrom
Git-me-outta-here:brushExtents-fire-events-fix
Open

Brush extents fire events fix#338
Git-me-outta-here wants to merge 2 commits into
syntagmatic:masterfrom
Git-me-outta-here:brushExtents-fire-events-fix

Conversation

@Git-me-outta-here
Copy link
Copy Markdown
Collaborator

brushExtents now fires events only after all new extents have been set. This prevents calls to 'brushend' with incomplete brushings.

Example:
brushExtents updates extent on dimension 1, calls 'brushend' with wrong __.brushed b/c dimension 2 does not have a brush extent yet;
then updates extent on dimension 2, calls 'brushend' again, this time with correct __.brushed

…t. This prevents calls to 'brushend' with incomplete brushings (example: brushExtents updates extent on dimension 1, calls 'brushend' with wrong __.brushed b/c dimension 2 does not have a brush extent yet; then updates extent on dimension 2, calls 'brushend' again, this time with correct __.brushed)
@Git-me-outta-here
Copy link
Copy Markdown
Collaborator Author

I guess this could be improved. In fact this should only send a single event, not one per dimension.

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