Rewrote the Pan tool based on KisTool. Fixes pan issues when mirroring is enabled.
CCBUG:365933
Differential Revision: https://phabricator.kde.org/D6245