fix bug that causes scene to move when button is clicked and dragged