eli5: How come the computer pointer on the screen hides on the right side of the screen but doesn’t on the left?

103 viewsEngineeringOther

When watching a video we always subconsciously swipe the mouse to the right so the pointer can hide on the right side but it will always rest against the left side completely visible why is that?

In: Engineering

4 Answers

Anonymous 0 Comments

The only actually important part programming-wise is the single pixel at the top left of the default graphic that lines up with where you’re clicking. That single pixel is the only thing that must remain on-screen to click things, so is the only part of the cursor that cares about where the edge of the screen is, and is by default the pixel at the very top of the left side.

You might notice that when you hover over a text box and are going to click where you want to start inputting text, the cursor changes – for mine, the single pixel while it’s over a text box is set at the dead center of the new graphic.

As such, it doesn’t have to always be that top-left pixel and can be customized, and in fact cursor customization was a regular practice when I was younger – there were a lot out there that clicked on, say, the bottom left, or had a little animated character chasing the cursor around trying to mop it up.

Anonymous 0 Comments

the pointer is pointing at the pixel at the top left corner. None of the pointer extends over that line on the left, but it does extend to the right. So if you move to point at the right most pixel on your screen, part of cursor goes off the screen but the point remains on it.

Anonymous 0 Comments

Position of the default cursor is identified by values for its left and top (the top/point for standard cursor). The icon for the cursor extends to the right and down of this left/top position. So the furthest left the left side of the cursor can go is the leftmost pixel while the right side of the cursor remains visible. On the right of the screen the left side of the cursor is at the rightmost pixel while the remainder of the cursor is off the right side of the screen.

You’ll find the same case with top and bottom. Top shows full cursor while bottom has tip of cursor on last row of pixels and remainder of cursor off bottom of screen.

I mean the cursor isn’t actually really off sides of screen. It just ceases to be rendered. It’s useful to think of it as being off the sides of screen for the purpose of explanation though.

While writing this I distinctly recalled countless non-standard cursors that were all the rage at school back in the late 90s. That was only a decade ago, right? Right?

Anonymous 0 Comments

The position of a pointer is one individual point.

The pointer is always on screen. It corresponds to an individual pixel on the screen.

The image which represents the pointer is of course larger than one pixel, so that you can see it more easily and that it can have different shapes depending on the circumstance. A certain pixel in that image is set to be its origin and it’s always in the exact point of the screen that you are pointing. Every other pixel in the image is positioned relative to it.

In the most common shape of the pointer, the pixel at the top left is the origin.