Skip to content

Commit

Permalink
Merge branch 'master' into fix-webpack-script
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano authored Nov 4, 2024
2 parents 157b953 + b6f8797 commit 0890138
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
12 changes: 9 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
presets: [
['@babel/preset-env', {
targets: {
browsers: ['ie 11']
}
}]
],
plugins: [
['@babel/plugin-proposal-object-rest-spread'],
['@babel/plugin-transform-runtime',
{
regenerator: true,
corejs: 3
}]
}
]
]
}
16 changes: 16 additions & 0 deletions src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,14 @@ class VolumeImageViewer {
})
})

this[_map].on('movestart', (event) => {
publish(this[_map].getTargetElement(), EVENT.MOVE_STARTED, { event })
})

this[_map].on('moveend', (event) => {
publish(this[_map].getTargetElement(), EVENT.MOVE_ENDED, { event })
})

let clickEvent = null

this[_map].on('pointermove', (event) => {
Expand Down Expand Up @@ -5286,6 +5294,14 @@ class _NonVolumeImageViewer {
keyboardEventTarget: document
})

this[_map].on('movestart', (event) => {
publish(this[_map].getTargetElement(), EVENT.MOVE_STARTED, { event })
})

this[_map].on('moveend', (event) => {
publish(this[_map].getTargetElement(), EVENT.MOVE_ENDED, { event })
})

view.fit(projection.getExtent(), { size: this[_map].getSize() })
}

Expand Down

0 comments on commit 0890138

Please sign in to comment.