+ ap.getSeqPanel().stopScrolling();
+
+ // todo res calculation should be a method on AlignViewport
+ int xCords = Math.max(0, evt.getX()); // prevent negative X coordinates
+ ViewportRanges ranges = av.getRanges();
+ int res = (xCords / av.getCharWidth())
+ + ranges.getStartRes();
+ res = Math.min(res, ranges.getEndRes());