Skip to content

Commit

Permalink
reposition pan tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarati Akkapeddi authored and Aarati Akkapeddi committed Jan 7, 2025
1 parent 8b37f31 commit 0f53ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ritual/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ function setup() {
if(window.innerWidth < 768){
var overflowContainer = document.querySelector('#grid');
console.log(overflowContainer)
overflowContainer.scrollLeft = width/2.75;
overflowContainer.scrollLeft = (((window.innerWidth * 2.9))/2 + 50)/1.45;
overflowContainer.scrollTop = 70;
}
}

Expand Down
4 changes: 2 additions & 2 deletions ritual/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ main.on canvas{
pointer-events: none;
display: none;
position: fixed;
right: calc(50vw - 45px);
right: calc(50vw - 31px);
z-index: 2;
bottom: 70px;
bottom: calc((100vh - 184px)/2);
}
main{
touch-action: none;
Expand Down

0 comments on commit 0f53ce4

Please sign in to comment.