fix #19 - Window has "shaky" behaviour while dragging