make sure map is not panned on arrow key input on 360° photo viewer

if the pannellum viewer is active, the arrow keys should rotate the view, and not also pan the map.

fixes #10360
This commit is contained in:
Martin Raifer
2024-07-31 18:09:06 +02:00
parent da47d12e0f
commit 0ea3afa9f7

View File

@@ -18,7 +18,8 @@ export default {
.append('div')
.attr('class', 'photo-frame pannellum-frame')
.attr('id', 'ideditor-pannellum-viewer')
.classed('hide', true);
.classed('hide', true)
.on('keydown', function(e) { e.stopPropagation(); });
if (!window.pannellum) {
await this.loadPannellum(context);