From 341c7aade40d46792af8a9815f02b694c5e56f8e Mon Sep 17 00:00:00 2001 From: Matei Stanca Date: Fri, 19 Jan 2024 18:18:15 -0500 Subject: [PATCH] offcanvas.immerse: Behaviour now attaches to body for reliability: The events still bubble up to it so no other changes are needed. See https://github.com/neurocracy/omnipedia/issues/46 --- javascript/offcanvas.immerse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/offcanvas.immerse.js b/javascript/offcanvas.immerse.js index 0417f2a..b1b023f 100644 --- a/javascript/offcanvas.immerse.js +++ b/javascript/offcanvas.immerse.js @@ -23,7 +23,7 @@ AmbientImpact.addComponent('OmnipediaSiteThemeOffcanvasImmerse', function( this.addBehaviour( 'OmnipediaSiteThemeOffcanvasImmerse', 'omnipedia-site-theme-offcanvas-immerse', - '.offcanvas-panel', + 'body', function(context, settings) { $(this).on('openOffcanvas.' + eventNamespace, function(event) {