Bill St. Clair on Nostr: mammudeck.com now properly responds to rotation of an iPhone from landscape to ...
mammudeck.com now properly responds to rotation of an iPhone from landscape to portrait mode. The problelm was that 'window.innerHeight' and 'window.innerWidth' do not get set until the 'window on resize' method returns, and I was sampling them inside there (or something like that). I changed the handler to call 'Dom.getViewport'.
Look Ma, he fixed a long-standing, and very irritable bug.
#mammudeck
Published at
2024-02-10 13:04:43Event JSON
{
"id": "a7af807c49c1e7991faaa082887ad812e3e5e1448a3930910a16996686ed2be6",
"pubkey": "6a1f5d32014b45490b47cc337fa50c80847748fb8b242297b6674e6a34e4a77f",
"created_at": 1707570283,
"kind": 1,
"tags": [
[
"t",
"mammudeck"
],
[
"proxy",
"https://impeccable.social/objects/4acf66ee-cd8e-49e5-bda9-7943714087ab",
"activitypub"
]
],
"content": "mammudeck.com now properly responds to rotation of an iPhone from landscape to portrait mode. The problelm was that 'window.innerHeight' and 'window.innerWidth' do not get set until the 'window on resize' method returns, and I was sampling them inside there (or something like that). I changed the handler to call 'Dom.getViewport'.\n\nLook Ma, he fixed a long-standing, and very irritable bug.\n\n#mammudeck",
"sig": "5c53dba71205cc8a09f7af12caf1539c47160d95aa8d423a836e825524dfc54226e04988aa586390ae73977212a6ed5e17cc275e92540bffdd2f5d0a04211cfd"
}