Add auto-panning to the Artboard tool (#1652)

* Move panning functionality to auto_panning.rs

* Add auto-panning to Artboard tool

* Hide debug messages containing AnimationFrame
This commit is contained in:
Elbert Ronnie
2024-03-08 20:32:46 -08:00
committed by GitHub
parent ea3f834b64
commit d780602ecd
5 changed files with 209 additions and 94 deletions
+3 -1
View File
@@ -222,7 +222,9 @@ impl Dispatcher {
/// Logs a message that is about to be executed,
/// either as a tree with a discriminant or the entire payload (depending on settings)
fn log_message(&self, message: &Message, queues: &[VecDeque<Message>], message_logging_verbosity: MessageLoggingVerbosity) {
if !MessageDiscriminant::from(message).local_name().ends_with("PointerMove") {
let message_name = MessageDiscriminant::from(message).local_name();
if !(message_name.ends_with("PointerMove") || message_name.ends_with("AnimationFrame")) {
match message_logging_verbosity {
MessageLoggingVerbosity::Off => {}
MessageLoggingVerbosity::Names => {