These 7 lines could be extracted into a method setDragging_(enabled) to enforce visuals<=>state consistency