From 6ddb3306842e0b3392a555f9152206e5183fc475 Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@orfeo-toolbox.org>
Date: Fri, 28 Jan 2011 08:59:18 +0100
Subject: [PATCH] ENH: Reducing navigation steps when arrow keys are used, so
 as to ease navigation

---
 Code/Visualization/otbArrowKeyMoveActionHandler.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Code/Visualization/otbArrowKeyMoveActionHandler.h b/Code/Visualization/otbArrowKeyMoveActionHandler.h
index 0454b115e7..00b180803a 100644
--- a/Code/Visualization/otbArrowKeyMoveActionHandler.h
+++ b/Code/Visualization/otbArrowKeyMoveActionHandler.h
@@ -105,7 +105,7 @@ public:
             index[1] = static_cast<int>(imagePoint[1]);
 
             // Move
-            index[1] -= size[1];
+            index[1] -= size[1]/4;
 
             // Change scaled extract region center
             m_Model->SetExtractRegionCenter(index);
@@ -133,7 +133,7 @@ public:
             index[1] = static_cast<int>(imagePoint[1]);
 
             // Move
-            index[1] += size[1];
+            index[1] += size[1]/4;
 
             // Change scaled extract region center
             m_Model->SetExtractRegionCenter(index);
@@ -161,7 +161,7 @@ public:
             index[1] = static_cast<int>(imagePoint[1]);
 
             // Move
-            index[0] -= size[0];
+            index[0] -= size[0]/4;
 
             // Change scaled extract region center
             m_Model->SetExtractRegionCenter(index);
@@ -189,7 +189,7 @@ public:
             index[1] = static_cast<int>(imagePoint[1]);
 
             // Move
-            index[0] += size[0];
+            index[0] += size[0]/4;
 
             // Change scaled extract region center
             m_Model->SetExtractRegionCenter(index);
-- 
GitLab