Selected elements get lost when using scroll bars #701
-
I activated the GLSPProjectionView in the di-config.ts file using the following line of code Thank you for all your work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @aurelio-pennacchio , The projection view is a sprotty feature so maybe you should also raise your question there. 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 issue will be fixed soon. |
Beta Was this translation helpful? Give feedback.
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…