void gestureRecongnizer_ManipulationUpdated(GestureRecognizer sender, ManipulationUpdatedEventArgs e)
{
- if (this._Controller.MoveCaretAndGripper(e.Position, this.hittedGripper))
- {
-#if ENABLE_AUTMATION
- if (this.peer != null)
- this.peer.OnNotifyCaretChanged();
-#endif
- this.Refresh();
- return;
- }
-
if (e.Delta.Scale < 1)
{
double newSize = this.Render.FontSize - 1;
SetValue(MagnificationPowerPropertyKey, this.Render.FontSize / this.FontSize);
return;
}
-
+
if (e.Delta.Scale > 1)
{
double newSize = this.Render.FontSize + 1;
SetValue(MagnificationPowerPropertyKey, this.Render.FontSize / this.FontSize);
return;
}
+
+ if (this._Controller.MoveCaretAndGripper(e.Position, this.hittedGripper))
+ {
+#if ENABLE_AUTMATION
+ if (this.peer != null)
+ this.peer.OnNotifyCaretChanged();
+#endif
+ this.Refresh();
+ return;
+ }
Point translation = e.Delta.Translation;