edge panning not quite working