Skip to content

Commit

Permalink
fix: scrolling on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Mar 3, 2024
1 parent 015ae85 commit f050b27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions static/code/css/ubq.css
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ div#down-arrow-wrapper {
/* height: 100%; */
/* top: 0; */
transform: translateY(-50%);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: 1px solid #202020;
border-width: 1px 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export function devPoolSpread() {
document.addEventListener("DOMContentLoaded", () => {
const iframe = document.querySelector("#DevPool iframe") as HTMLIFrameElement;
if (!iframe) throw new Error("No iframe element");

const observer = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting) {
if (!iframe) throw new Error("No iframe element");
Expand All @@ -12,6 +13,14 @@ export function devPoolSpread() {
}
}, {});
observer.observe(iframe);

iframe.addEventListener(
"touchmove",
(e) => {
e.preventDefault();
},
{ passive: false }
);
});

fetchTotalRewards()
Expand Down

0 comments on commit f050b27

Please sign in to comment.