mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 08:28:12 +08:00
* Fix auto panning * Clean up comments --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -152,6 +152,12 @@ impl EditorHandle {
|
||||
for message in editor.handle_message(AnimationMessage::IncrementFrameCounter) {
|
||||
handle.send_frontend_message_to_js(message);
|
||||
}
|
||||
|
||||
// Used by auto-panning, but this could possibly be refactored in the future, see:
|
||||
// <https://github.com/GraphiteEditor/Graphite/pull/2562#discussion_r2041102786>
|
||||
for message in editor.handle_message(BroadcastMessage::TriggerEvent(BroadcastEvent::AnimationFrame)) {
|
||||
handle.send_frontend_message_to_js(message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user