Skip to content

Selected elements get lost when using scroll bars #701

Discussion options

You must be logged in to vote

Hi @aurelio-pennacchio ,
Unfortunately this is the default behavior of GLSP/sprotty. If you click on another UI element the currently active selection is reset. (This also happens if you don't use the scrollbar and move the viewport via dragging/panning).

The projection view is a sprotty feature so maybe you should also raise your question there.
My guess is that you probably have to customize the SelectMouseListener if you want to keep the selection.

Also note that there is currently an open bug that prevents keylisteners form working when using the projection view (eclipse-sprotty/sprotty#299). This is also the reason why we currently don't use it as default view. But hopefully this iss…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aurelio-pennacchio
Comment options

Answer selected by aurelio-pennacchio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants