mirror of
https://github.com/Ujwal223/FocusGram.git
synced 2026-04-01 17:10:23 +02:00
- Reordered Settings Page. - Added "Click to Unblur" for posts. - Added Persistent Notification - Improved Grayscale Scheduling. and more.
14 lines
478 B
Dart
14 lines
478 B
Dart
/// JS to improve momentum scrolling behaviour inside the WebView, especially
|
|
/// for content-heavy feeds like Reels.
|
|
///
|
|
/// Applies touch-style overflow scrolling hints to the root element.
|
|
const String kScrollSmoothingJS = r'''
|
|
(function fgScrollSmoothing() {
|
|
try {
|
|
document.documentElement.style.setProperty('-webkit-overflow-scrolling', 'touch');
|
|
document.documentElement.style.setProperty('overflow-scrolling', 'touch');
|
|
} catch (_) {}
|
|
})();
|
|
''';
|
|
|