Created
June 3, 2024 15:28
-
-
Save lukasasorensen/f513dd745972535ddd9cf3759442accf to your computer and use it in GitHub Desktop.
iOS pinch zoom memory leak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
.container { | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content: "center"; | |
} | |
.scaled-div { | |
position: absolute; | |
width: 1600px; | |
height: 900px; | |
background-color: green; | |
scale: 0.36474; | |
overflow: scroll; | |
img { | |
width: 800px; | |
height: auto; | |
} | |
} | |
.pdf-display { | |
width: 50%; | |
height: 300px; | |
position: absolute; | |
} | |
.blue-box { | |
background: blue; | |
width: 500px; | |
height: 500px; | |
border: 1px solid black; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="scaled-div"> | |
<img | |
src="https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExc2xtdGYyYzFzamIyY2cxazUzbnZ2YXh4dGR2OGYwcjJnMW52aXEwOSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MUHNdrm3vk7MoyUsCO/giphy.gif" | |
/> | |
<img | |
src="https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExc2xtdGYyYzFzamIyY2cxazUzbnZ2YXh4dGR2OGYwcjJnMW52aXEwOSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MUHNdrm3vk7MoyUsCO/giphy.gif" | |
/> | |
<img | |
src="https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExc2xtdGYyYzFzamIyY2cxazUzbnZ2YXh4dGR2OGYwcjJnMW52aXEwOSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MUHNdrm3vk7MoyUsCO/giphy.gif" | |
/> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment