Solved! Go to Solution.
I think I understand the problem.
Can you try moving the swipe domNode into the map domnode? After the widget is loaded probably.
Currenlty, the widget gets placed into the layers div but I think that is causing the hover issue.
Like this:domConstruct.place(mySwipeWidget.domNode, dom.byId('my_map_id'), 'last');
domConstruct.place(mySwipeWidget.domNode, dom.byId('my_map_id'), 'last');
_init: function() {
// set type of swipe
this._setSwipeType();
// events
this._setupEvents();
// check if not enabled
this._enabled();
// we're ready
this.set("loaded", true);
this.emit("load", {});
// giddyup
this.swipe();
},
I think I understand the problem.
Can you try moving the swipe domNode into the map domnode? After the widget is loaded probably.
Currenlty, the widget gets placed into the layers div but I think that is causing the hover issue.
Like this:domConstruct.place(mySwipeWidget.domNode, dom.byId('my_map_id'), 'last');