File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -331,12 +331,15 @@ function launchParticlesJS(tag_id, params){
331
331
} ;
332
332
333
333
pJS . fn . vendors . interactivity . listeners = function ( ) {
334
+
335
+ /* init el */
334
336
if ( pJS . interactivity . detect_on == 'window' ) {
335
337
var detect_el = window
336
338
} else {
337
339
var detect_el = pJS . canvas . el
338
340
}
339
341
342
+ /* el on mousemove */
340
343
detect_el . onmousemove = function ( e ) {
341
344
pJS . interactivity . mouse . pos_x = e . pageX ;
342
345
pJS . interactivity . mouse . pos_y = e . pageY ;
@@ -349,12 +352,14 @@ function launchParticlesJS(tag_id, params){
349
352
pJS . interactivity . status = 'mousemove' ;
350
353
} ;
351
354
355
+ /* el on onmouseleave */
352
356
detect_el . onmouseleave = function ( e ) {
353
357
pJS . interactivity . mouse . pos_x = 0 ;
354
358
pJS . interactivity . mouse . pos_y = 0 ;
355
359
pJS . interactivity . status = 'mouseleave' ;
356
360
} ;
357
361
362
+ /* el on onclick */
358
363
if ( pJS . interactivity . events . onclick . enable ) {
359
364
switch ( pJS . interactivity . events . onclick . mode ) {
360
365
case 'push' :
@@ -381,7 +386,6 @@ function launchParticlesJS(tag_id, params){
381
386
break ;
382
387
}
383
388
}
384
-
385
389
} ;
386
390
387
391
You can’t perform that action at this time.
0 commit comments