private void OnTextTap(object sender, PointManipulationEventArgs e) { if (PageCanvas.CheckSelection(GetTapPoint(e.ManipulationOrigin))) { return; } ClearTextSelection(); }
private void PageOnTap(object sender, PointManipulationEventArgs e) { if (_link != null) { GotoLink(_link.LinkID); PageCanvas.Manipulator.Resume(); _link = null; } }
private void PageOnHold(object sender, PointManipulationEventArgs e) { var point = e.ManipulationOrigin; var word = PageCanvas.CurrentTexts.FirstOrDefault(l => l.Rect.Contains(point)); if (word == null) { return; } var words = PageCanvas.CurrentTexts.Where(w => w.TokenID == word.TokenID).ToList(); word = words.FirstOrDefault(); TextRenderData wordContinuation = words.LastOrDefault() ?? word; //TextRenderData word = PageCanvas.CurrentTexts.FirstOrDefault(l => l.Rect.Contains(point)); InitTextSelection(word, wordContinuation); }