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

regions plugin: allow drawing new regions over old ones, when the old ones are not resizable and not draggable #1633

Merged

Conversation

moritzvieli
Copy link
Contributor

Short description of changes:

When a region is not resizable and not draggable, I don't want to stop the event propagation, because the event is not handled. In this case, it makes it impossible to draw new regions over (maybe fixed background regions). With this PR, the event propagation only stops, if the region is resizable or draggable and actually handles the event.

Breaking in the external API:

None

Breaking changes in the internal API:

None

Todos/Notes:

None

Related Issues and other PRs:

None

@coveralls
Copy link

coveralls commented Apr 25, 2019

Coverage Status

Coverage increased (+1.3%) to 69.825% when pulling 166be38 on moritzvieli:feature/overlapping-regions into 1ec2a19 on katspaugh:master.

@thijstriemstra thijstriemstra changed the title Allow drawing new regions over old ones, when the old ones are not resizable and not draggable regions plugin: allow drawing new regions over old ones, when the old ones are not resizable and not draggable Apr 25, 2019
Copy link
Contributor

@thijstriemstra thijstriemstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add changelog entry (inc pr nr)

src/plugin/regions.js Show resolved Hide resolved
@moritzvieli
Copy link
Contributor Author

@thijstriemstra it's done.

@thijstriemstra thijstriemstra merged commit 25a0fb4 into katspaugh:master Apr 28, 2019
sandiz pushed a commit to sandiz/wavesurfer.js that referenced this pull request May 21, 2019
… ones are not resizable and not draggable (katspaugh#1633)

* Enable drawing regions over regions, if the underlying region is not draggable/resizable

* Better documentation
sandiz pushed a commit to sandiz/wavesurfer.js that referenced this pull request May 21, 2019
… ones are not resizable and not draggable (katspaugh#1633)

* Enable drawing regions over regions, if the underlying region is not draggable/resizable

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

Successfully merging this pull request may close these issues.

None yet

3 participants