From 9b72616c80a5195b7fd666c1a78c46478be3b346 Mon Sep 17 00:00:00 2001 From: asvitkine Date: Sat, 30 Sep 2023 12:25:22 -0400 Subject: [PATCH] Mac: Add support for zooming map via touchpad pinch. (#12002) * Mac: Add support for zooming map via touchpad pinch. * Share some code. --- .idea/runConfigurations/HeadedGameRunner.xml | 2 +- .../strategy/ui/ImageScrollerLargeView.java | 21 ++++--- game-app/game-headed/build.install4j | 1 + .../org/triplea/swing/gestures/Gestures.java | 58 +++++++++++++++++++ .../swing/gestures/MagnificationListener.java | 12 ++++ 5 files changed, 86 insertions(+), 8 deletions(-) create mode 100644 lib/swing-lib/src/main/java/org/triplea/swing/gestures/Gestures.java create mode 100644 lib/swing-lib/src/main/java/org/triplea/swing/gestures/MagnificationListener.java diff --git a/.idea/runConfigurations/HeadedGameRunner.xml b/.idea/runConfigurations/HeadedGameRunner.xml index 485a11c4bce..bfd9b312698 100644 --- a/.idea/runConfigurations/HeadedGameRunner.xml +++ b/.idea/runConfigurations/HeadedGameRunner.xml @@ -2,7 +2,7 @@