Who should analyze mouse input in MVC architecture

I am new to MVC and I want to do everything from the very beginning like this: I am creating an MVC web application in jquery / html; I need to know where the mouse is on the screen and do different things depending on this position. If the view takes a mouse position and, depending on where it happens, calls up different functions of the Controller, or if the view simply sends the mouse position to the controller, which then chooses what to do with it? Is there an MVC example in a web application that I could view? Thank you for your help.

+4
source share
1 answer

View . Get the coordinates at which user interaction occurred (mouse click). Send the coordinates + any additional information to the controller.

Controller Get the details of user interaction (mouse click) and decide what to do with it.

+2
source

All Articles