fix: use LOGICAL_WIDTH,HEIGHT instead of SCREEN_WIDTH,HEIGHT beucase screen is scaled
This commit is contained in:
@@ -7,7 +7,7 @@ export const useContactStore = defineStore("contact", {
|
||||
stage2Opacity: 0,
|
||||
stage3Opacity: 0,
|
||||
|
||||
titleY: SCREEN_HEIGHT,
|
||||
titleY: LOGICAL_HEIGHT,
|
||||
|
||||
barOffsetY: 20,
|
||||
},
|
||||
@@ -35,11 +35,11 @@ export const useContactStore = defineStore("contact", {
|
||||
this.intro,
|
||||
{
|
||||
stage1Opacity: 0,
|
||||
titleY: SCREEN_HEIGHT,
|
||||
titleY: LOGICAL_HEIGHT,
|
||||
},
|
||||
{
|
||||
stage1Opacity: 1,
|
||||
titleY: SCREEN_HEIGHT - 23,
|
||||
titleY: LOGICAL_HEIGHT - 23,
|
||||
duration: 0.1,
|
||||
ease: "none",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user