bf 1197 variant
Merge pull request #1225 from GiorgiyLutidze/pen_movement

bf 1197