fix arrowheads not always being visible while panning