Browse Source

testing scrollInterval 0.2 seconds

master
farhan 4 months ago
parent
commit
5a9e0143ab
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      resources/js/app.js

+ 1
- 1
resources/js/app.js View File

95
     var hasPlayed = false; // To ensure audio only plays once upon clicking and scrolling
95
     var hasPlayed = false; // To ensure audio only plays once upon clicking and scrolling
96
     var scrollCount = 0;
96
     var scrollCount = 0;
97
     var maxScrolls = 8;
97
     var maxScrolls = 8;
98
-    var scrollInterval = 3000; // Time in milliseconds between each scroll
98
+    var scrollInterval = 200; // Time in milliseconds between each scroll
99
     var scrollAmount = window.innerHeight / 6; // Amount to scroll per interval
99
     var scrollAmount = window.innerHeight / 6; // Amount to scroll per interval
100
 
100
 
101
     function playAudio() {
101
     function playAudio() {

Loading…
Cancel
Save