int margin = st.getLineHeight();
if (pt.y < margin) { // up
st.invokeAction(ST.LINE_UP);
} else if (pt.y > ca.height - margin) { // down
st.invokeAction(ST.LINE_DOWN);
}
// draw insertion point
int offset = getDropOffset(textEditor, pt);
if (offset != st.getCaretOffset()) {