File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
shelly/plotlyjs/static/plotlyjs/src Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -176,20 +176,15 @@ fx.init = function(gd) {
176
176
// but still be able to interact with everything as if it isn't there
177
177
var hoverLayer = fullLayout . _hoverlayer . node ( ) ;
178
178
179
- function mousemoveHandler ( evt ) {
179
+ hoverLayer . onmousemove = function ( evt ) {
180
180
evt . target = fullLayout . _lasthover ;
181
181
fx . hover ( gd , evt , fullLayout . _hoversubplot ) ;
182
- }
182
+ } ;
183
183
184
- function clickHandler ( evt ) {
184
+ hoverLayer . onclick = function ( evt ) {
185
185
evt . target = fullLayout . _lasthover ;
186
186
fx . click ( gd , evt ) ;
187
- }
188
-
189
- hoverLayer . removeEventListener ( 'mousemove' , mousemoveHandler ) ;
190
- hoverLayer . removeEventListener ( 'click' , clickHandler ) ;
191
- hoverLayer . addEventListener ( 'mousemove' , mousemoveHandler ) ;
192
- hoverLayer . addEventListener ( 'click' , clickHandler ) ;
187
+ } ;
193
188
194
189
// also delegate mousedowns... TODO: does this actually work?
195
190
hoverLayer . onmousedown = function ( evt ) {
You can’t perform that action at this time.
0 commit comments