From b153a0151e6c59740df06c047d688b2e98fd5056 Mon Sep 17 00:00:00 2001 From: gdkhd812 Date: Wed, 16 Dec 2015 21:19:21 +0530 Subject: [PATCH] =?utf8?q?=E3=82=BF=E3=83=83=E3=83=81=E3=82=B9=E3=82=AF?= =?utf8?q?=E3=83=AD=E3=83=BC=E3=83=AB=E6=99=82=E3=81=AB=E3=82=AB=E3=83=BC?= =?utf8?q?=E3=82=BD=E3=83=AB=E3=81=8C=E5=87=BA=E3=81=AA=E3=81=84=E3=82=88?= =?utf8?q?=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- WPF/FooEditEngine/FooTextBox.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/WPF/FooEditEngine/FooTextBox.cs b/WPF/FooEditEngine/FooTextBox.cs index 121a4e8..5176871 100644 --- a/WPF/FooEditEngine/FooTextBox.cs +++ b/WPF/FooEditEngine/FooTextBox.cs @@ -924,6 +924,7 @@ namespace FooEditEngine.WPF } Gripper hittedGripper; + bool touchScrolled = false; /// protected override void OnTouchDown(TouchEventArgs e) @@ -935,9 +936,10 @@ namespace FooEditEngine.WPF /// protected override void OnTouchUp(TouchEventArgs e) { - if(this.hittedGripper != null) + if(this.hittedGripper != null || this.touchScrolled) { this.hittedGripper = null; + this.touchScrolled = false; return; } @@ -981,6 +983,11 @@ namespace FooEditEngine.WPF } /// + protected override void OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs e) + { + } + + /// protected override void OnManipulationDelta(ManipulationDeltaEventArgs e) { if (this.hittedGripper != null) @@ -996,6 +1003,7 @@ namespace FooEditEngine.WPF this.View.IsFocused = false; this.Document.SelectGrippers.BottomLeft.Enabled = false; this.Document.SelectGrippers.BottomRight.Enabled = false; + this.touchScrolled = true; this.Refresh(); return; } @@ -1009,6 +1017,7 @@ namespace FooEditEngine.WPF this._Controller.Scroll(ScrollDirection.Right, deltax, false, false); this.Document.SelectGrippers.BottomLeft.Enabled = false; this.Document.SelectGrippers.BottomRight.Enabled = false; + this.touchScrolled = true; this.Refresh(); } } -- 2.11.0