# \#viewport

**URL:** https://discourse.threejs.org/tag/viewport/1564.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Three.js Canvas jumps on mobile when address bar hides/shows (100vh issue)](https://discourse.threejs.org/t/three-js-canvas-jumps-on-mobile-when-address-bar-hides-shows-100vh-issue/87435)

<div class="topic-metadata">

**Author:** [@P4CHO](https://discourse.threejs.org/u/P4CHO)\
**Replies:** 1\
**Last updated:** [October 9, 2025, 2:40pm UTC](https://discourse.threejs.org/t/three-js-canvas-jumps-on-mobile-when-address-bar-hides-shows-100vh-issue/87435 "2025-10-09T14:40:29Z")

</div>

Hi everyone :waving\_hand: I’m building a hero section using React Three Fiber (based on Three.js) and everything looks perfect on desktop but on mobile browser ( Safari ) especially on Iphone the canvas jumps up and dow…

---

## [Issue with Post processing and viewport and Renderer clear flags](https://discourse.threejs.org/t/issue-with-post-processing-and-viewport-and-renderer-clear-flags/85011)

<div class="topic-metadata">

**Author:** [@x0YYYY0](https://discourse.threejs.org/u/x0YYYY0)\
**Replies:** 1\
**Last updated:** [July 11, 2025, 4:47pm UTC](https://discourse.threejs.org/t/issue-with-post-processing-and-viewport-and-renderer-clear-flags/85011 "2025-07-11T16:47:22Z")

</div>

Hello in my project I am trying to render a transparent mini map with viewport (like the ViewHelper ) in conjunction with the TSL pass and PostProcessing system (I need it for several different effects in my project). I…

---

## [Rotating viewport in threejs on keyboard like in threejs holding left mouse's key event](https://discourse.threejs.org/t/rotating-viewport-in-threejs-on-keyboard-like-in-threejs-holding-left-mouses-key-event/82267)

<div class="topic-metadata">

**Author:** [@meded90](https://discourse.threejs.org/u/meded90)\
**Replies:** 9\
**Last updated:** [May 10, 2025, 4:22pm UTC](https://discourse.threejs.org/t/rotating-viewport-in-threejs-on-keyboard-like-in-threejs-holding-left-mouses-key-event/82267 "2025-05-10T16:22:55Z")

</div>

I have an option to move forward/backward and right/left And i wanted to have an option to rotate viewport like it does threejs on holding left mouse’s key currently for rotation i have a code: if (keys\['home'\]) { …

---

## [Sharp alignment of z-axis ( three-viewport-gizmo)](https://discourse.threejs.org/t/sharp-alignment-of-z-axis-three-viewport-gizmo/77494)

<div class="topic-metadata">

**Author:** [@Oleksandr-Fedorov](https://discourse.threejs.org/u/Oleksandr-Fedorov)\
**Replies:** 2\
**Last updated:** [February 3, 2025, 5:09pm UTC](https://discourse.threejs.org/t/sharp-alignment-of-z-axis-three-viewport-gizmo/77494 "2025-02-03T17:09:18Z")

</div>

Hey,I use the three-vieport-gizmo library for my project.It looks similar to the original ViewHelper library, so I think a lot of people will understand what I mean. I have an “autoRotate” parameter in the dat.gui on my…

---

## [Set a PlaneGeometry in the same place of view plane to fill the viewport](https://discourse.threejs.org/t/set-a-planegeometry-in-the-same-place-of-view-plane-to-fill-the-viewport/73628)

<div class="topic-metadata">

**Author:** [@Miguel\_de\_Dios\_Matias](https://discourse.threejs.org/u/Miguel_de_Dios_Matias)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 1:06pm UTC](https://discourse.threejs.org/t/set-a-planegeometry-in-the-same-place-of-view-plane-to-fill-the-viewport/73628 "2024-11-05T13:06:47Z")

</div>

Hi. I am trying to set a white planeGeometry to fill the viewport but the result is a plane geometry with a good rotation but it is far to the camera. This is a small code that I coded to try it. \<html\> \<title\>\</title\>…

---

## [Problem of continuity in the rendering in multiple views (viewport/scissor), with the composer](https://discourse.threejs.org/t/problem-of-continuity-in-the-rendering-in-multiple-views-viewport-scissor-with-the-composer/70176)

<div class="topic-metadata">

**Author:** [@vincent\_mgdesign](https://discourse.threejs.org/u/vincent_mgdesign)\
**Replies:** 1\
**Last updated:** [September 3, 2024, 3:48pm UTC](https://discourse.threejs.org/t/problem-of-continuity-in-the-rendering-in-multiple-views-viewport-scissor-with-the-composer/70176 "2024-09-03T15:48:39Z")

</div>

Hello, I’m using ThreeJS to create an application with several viewports of the same scene. The viewports are a continuity of the 3d scene. And they are not displayed continuously in the interface, I have to detach them…

---

## [ScrollControls causes viewport to be stretched out](https://discourse.threejs.org/t/scrollcontrols-causes-viewport-to-be-stretched-out/69991)

<div class="topic-metadata">

**Author:** [@Cube\_3js](https://discourse.threejs.org/u/Cube_3js)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 5:59pm UTC](https://discourse.threejs.org/t/scrollcontrols-causes-viewport-to-be-stretched-out/69991 "2024-08-27T17:59:06Z")

</div>

I am having an issue with the canvas in r3f. When I implemented ScrollControls on the camera, it appears to be stretched out vertically, and would return to normal as soon as I scrolled to the bottom. Here my example of …

---

## [PerspectiveCamera: fit mesh to viewport, with orbital camera offset](https://discourse.threejs.org/t/perspectivecamera-fit-mesh-to-viewport-with-orbital-camera-offset/65589)

<div class="topic-metadata">

**Author:** [@shaun](https://discourse.threejs.org/u/shaun)\
**Replies:** 1\
**Last updated:** [May 16, 2024, 11:13am UTC](https://discourse.threejs.org/t/perspectivecamera-fit-mesh-to-viewport-with-orbital-camera-offset/65589 "2024-05-16T11:13:55Z")

</div>

I’m using this threeJS library, which is very similar to OrbitControls, but has more support for transitions and some other features. Principally, it works the same way, using spherical coords and a distance-from-target …

---

## [How to find position of a mesh in viewport x,y space](https://discourse.threejs.org/t/how-to-find-position-of-a-mesh-in-viewport-x-y-space/61231)

<div class="topic-metadata">

**Author:** [@David\_Nicol](https://discourse.threejs.org/u/David_Nicol)\
**Replies:** 5\
**Last updated:** [February 10, 2024, 11:35am UTC](https://discourse.threejs.org/t/how-to-find-position-of-a-mesh-in-viewport-x-y-space/61231 "2024-02-10T11:35:11Z")

</div>

is there an elegant way to find out the position of a mesh in the viewport plane? I’ve got clicking-on-objects working using raycaster, so I could poll the whole grid to see what is at every x,y, but that seems horribly …
