Issue #2902304 by droplet, tedbow: Remove `scroll.off-canvas` event

8.5.x
Scott Reeves 2017-08-22 16:29:01 -04:00
parent 10e67388cb
commit 061f38641b
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@
Drupal.offCanvas.getContainer($element).attr(`data-offset-${Drupal.offCanvas.getEdge()}`, '');
$(window)
.on('resize.off-canvas scroll.off-canvas', eventData, debounce(Drupal.offCanvas.resetSize, 100))
.on('resize.off-canvas', eventData, debounce(Drupal.offCanvas.resetSize, 100))
.trigger('resize.off-canvas');
},

View File

@ -45,7 +45,7 @@
Drupal.offCanvas.getContainer($element).attr('data-offset-' + Drupal.offCanvas.getEdge(), '');
$(window).on('resize.off-canvas scroll.off-canvas', eventData, debounce(Drupal.offCanvas.resetSize, 100)).trigger('resize.off-canvas');
$(window).on('resize.off-canvas', eventData, debounce(Drupal.offCanvas.resetSize, 100)).trigger('resize.off-canvas');
},
render: function render(_ref3) {
var settings = _ref3.settings;