mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 04:07:23 +00:00
Don't focus on ground immediately for mobile
This commit is contained in:
2
birb.js
2
birb.js
@@ -958,7 +958,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
lastActionTimestamp = Date.now();
|
lastActionTimestamp = Date.now();
|
||||||
// Can't keep up with scrolling on mobile devices so fly down instead
|
// Can't keep up with scrolling on mobile devices so fly down instead
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
focusOnGround();
|
// focusOnGround();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
2
build.js
2
build.js
@@ -24,7 +24,7 @@ const userScriptHeader =
|
|||||||
`// ==UserScript==
|
`// ==UserScript==
|
||||||
// @name Browser Bird
|
// @name Browser Bird
|
||||||
// @namespace https://idreesinc.com
|
// @namespace https://idreesinc.com
|
||||||
// @version 2025-10-22-01
|
// @version 2025-10-22-02
|
||||||
// @description birb
|
// @description birb
|
||||||
// @author Idrees
|
// @author Idrees
|
||||||
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||||
|
|||||||
2
dist/birb.js
vendored
2
dist/birb.js
vendored
@@ -1297,7 +1297,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
lastActionTimestamp = Date.now();
|
lastActionTimestamp = Date.now();
|
||||||
// Can't keep up with scrolling on mobile devices so fly down instead
|
// Can't keep up with scrolling on mobile devices so fly down instead
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
focusOnGround();
|
// focusOnGround();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
4
dist/birb.user.js
vendored
4
dist/birb.user.js
vendored
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Browser Bird
|
// @name Browser Bird
|
||||||
// @namespace https://idreesinc.com
|
// @namespace https://idreesinc.com
|
||||||
// @version 2025-10-22-01
|
// @version 2025-10-22-02
|
||||||
// @description birb
|
// @description birb
|
||||||
// @author Idrees
|
// @author Idrees
|
||||||
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||||
@@ -1311,7 +1311,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
lastActionTimestamp = Date.now();
|
lastActionTimestamp = Date.now();
|
||||||
// Can't keep up with scrolling on mobile devices so fly down instead
|
// Can't keep up with scrolling on mobile devices so fly down instead
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
focusOnGround();
|
// focusOnGround();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user