What is the main difference between client.Y Layer.Y, Client.X Layer.X JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is the main difference between client.Y Layer.Y, Client.X Layer.X JavaScript

I've been doing some test on canvas with the mouse, and there are different ways to get xPos and yPos. I saw people who use client others layer or offsetLeft-client.Y or x I don't remember right now, the thing is which is the different between them and which should I use

30th Jan 2019, 12:11 AM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
0 Answers