Skip to content

Possibility to import as a module too #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glucka
Copy link
Contributor

@glucka glucka commented May 19, 2025

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

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants