-
Notifications
You must be signed in to change notification settings - Fork 4
Improve space drag #277
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
Improve space drag #277
Conversation
- Used D3 for smooth dragging - Renamed functions to use the same pattern as option drag - Simplied dragging code refs: #270
@yinanazhou thanks—this is a noticeable performance improvement. Latency is still prohibitively high in the Brandenburg concerto example (sent via Mattermost). I am wondering, could we rethink div and SVG sizing so that we rely exclusively on CSS for scrolling ( Adding |
Hi @yrammos, thank you for the feedback. The slow performance with this file may not be directly related to the changes in this PR. It appears that the file triggers a large number of warnings in Verovio, and other actions remain slow even on the master branch. This suggests that the performance issues are more broadly related to the overall state of the app. As I mentioned earlier, the codebase is currently quite complex, which makes it difficult to have full control over the behavior in certain cases. Regarding the scrollbar, I opted not to use it because navigating between multiple layers would require frequent scrolling, which could hinder usability. |
@yinanazhou unlike you, I cannot reproduce the issue on the Would you please make a rough prototype with scrollbars (either as a branch of this PR, or as a new PR altogether)? No need to polish the edges—just a demo of the concept, so that we can compare the general experiences. Thanks! |
@yrammos, yes, scrolling alone appears smooth because it doesn't interact with the app. However, when you interact with the app—for example, selecting notes or creating relations. These actions are significantly slow. |
@yinanazhou indeed, operations that require a search within the XML tree (e.g. matching a clicked-on notehead with a |
Not only that, dragging a fly-out relation window is also not possible. Please let me know how you would like to proceed with this PR. |
Before deciding how to proceed, please make a rough prototype with standard browser scrollbars (either as a branch of this PR, or as a new PR altogether). As I wrote above, no need to polish the prototype—just a demo of the concept, so that we can compare the two experiences. Thanks. |
UPDATE: I cannot space-drag beyond the first few measures of |
@yrammos are you on ![]() |
Please disregard, @yinanazhou, my working tree was dirty, so I hadn’t successfully checked out the right branch. Let’s proceed as suggested in this comment. Thanks! |
Please check this branch about scrolling navigation. |
@yinanazhou this feels immensely better and more comfortable to me in actual use of the app—and will be even better when combined with #268. Some larger scores are rendered either not at all, or invisibly small (examples: |
- Ensured that `adjustSvgDimension` is called after drawing complete - Added 100px offset to y dimension refs: #277 (comment)
.view
elementcloses: #270