Trig-JS icon indicating copy to clipboard operation
Trig-JS copied to clipboard

Possibility to import as a module too

Open glucka opened this issue 7 months ago • 1 comments

With this small change, is possible to use dynamic import too: import(../pathto/trig.js).then(module => { trig.trigInit() });

glucka avatar May 19 '25 07:05 glucka

Nice one, I will pull this and add my latest change to the trig-scroll-top code. It currently checks if at the top but due to padding and margins it can be triggered just before the top of the screen sometimes. I`ll put them together and release as v4.2.1.

Thanks again.

iDev-Games avatar May 19 '25 09:05 iDev-Games