Skip to content

Commit

Permalink
Make scanning mode a little less sticky after scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelizkeith committed Mar 10, 2023
1 parent 1668500 commit 89917fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export default class App extends Component {
// This is a relatively minor portion of the scanning update in most cases, but
// it allows us to set scanning while the user is scrolling quickly over the whole document.
// Cap it at a maximum constant so that the scores don't go to extremes when scrolling over the entire document.
if(scanningScore < 100) {
if(scanningScore < 80) {
var scanningDetectorChange = scrollDifferenceInPx / 40;
this.changeDetectorScores(0, 0, scanningDetectorChange);
logData("Scroll event. Scanning detector change: " + scanningDetectorChange, "SCROLL");
Expand Down

0 comments on commit 89917fc

Please sign in to comment.