Skip to content
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

Smoothfox.js - parse error quick fix #287

Closed
MarcusHoltz opened this issue Apr 10, 2024 · 1 comment · Fixed by #276
Closed

Smoothfox.js - parse error quick fix #287

MarcusHoltz opened this issue Apr 10, 2024 · 1 comment · Fixed by #276
Assignees

Comments

@MarcusHoltz
Copy link

MarcusHoltz commented Apr 10, 2024

REPORT

Describe the bug

Using Smoothfox.js you may get prefs parse error: unexpected character printed to your terminal.


To Reproduce

This affects anything with a decimal point under: OPTION: NATURAL SMOOTH SCROLLING V3 [MODIFIED]
(lines 58, 60, 61) in Smoothfox.js


Solution

Use whole numbers without any decimals.


Example

Here are the original lines 58-61:

user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2.0);
user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
user_pref("general.smoothScroll.currentVelocityWeighting", 1.0);
user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0);

Here are lines 58-61, with no decimal point:

user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2);
user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
user_pref("general.smoothScroll.currentVelocityWeighting", 1);
user_pref("general.smoothScroll.stopDecelerationWeighting", 1);

Resolution

With this change, I am no longer receiving an error in my terminal.


Desktop (please complete the following information):

  • OS: Fedora 39
  • Browser: Firefox
  • Version: 124.0
yokoffing added a commit that referenced this issue Apr 11, 2024
@yokoffing yokoffing linked a pull request Apr 11, 2024 that will close this issue
@yokoffing
Copy link
Owner

yokoffing commented Apr 11, 2024

Thank you for the report! The issue will be resolved with the release of the upcoming update.

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 a pull request may close this issue.

2 participants