mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user