if (HittedCaret || hittedGripper != null)
{
+ TextPointSearchRange searchRange;
+ if (this.View.HitTextArea(p.X, p.Y))
+ searchRange = TextPointSearchRange.TextAreaOnly;
+ else if (this.SelectionLength > 0)
+ searchRange = TextPointSearchRange.Full;
+ else
+ return false;
+
if (hittedGripper != null)
{
- tp = this.View.GetTextPointFromPostion(hittedGripper.AdjustPoint(p));
+ tp = this.View.GetTextPointFromPostion(hittedGripper.AdjustPoint(p), searchRange);
if (tp == TextPoint.Null)
return false;
if (this.IsReverseSelect())
}
else
{
- tp = this.View.GetTextPointFromPostion(p);
+ tp = this.View.GetTextPointFromPostion(p, searchRange);
if (tp != TextPoint.Null)
{
this.MoveCaretAndSelect(tp);