Scroll listener now includes targets containing ScrollTarget
This commit is contained in:
parent
88c1eca618
commit
c03361952f
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ export default {
|
||||||
// Handle global mouse wheel events to be associated with navigation
|
// Handle global mouse wheel events to be associated with navigation
|
||||||
wheelMonitor: function(event) {
|
wheelMonitor: function(event) {
|
||||||
// Only capture scroll if the event target's parent contains the "scrollTarget" class
|
// Only capture scroll if the event target's parent contains the "scrollTarget" class
|
||||||
if (event.target.parentNode.classList.contains("scrollTarget")) {
|
if (event.target.parentNode.classList.contains("scrollTarget") || event.target.classList.contains("scrollTarget")) {
|
||||||
var z_rel = (event.deltaY)/100 * this.stepZz
|
var z_rel = (event.deltaY)/100 * this.stepZz
|
||||||
this.moveRequest(0, 0, z_rel, false)
|
this.moveRequest(0, 0, z_rel, false)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue