Thank you very much, that works.
I didn't expect that behaviour as the right mouse button usually is being used for context menu.
Might it be a good idea, to additionally support panning with the middle mouse key, as this key currently is unused and might be more intuitive?