There's a "force" limit (HALL) sensor when the window is rolling up (to prevent your arm from being caught if you're rolling up the window). I'd say it's the sensor, which is part of the motor housing, but it could also be the door module. (See the wiring diag. below).
If it was the switch, you'd get an intermittent or permanent no roll up (or down) while using it in "manual" mode.
There's actually two modes with the switch: Manual - you only pull/push the switch about 1/2-way, and as soon as you let go, the window will stop rolling up/down. Or auto: You momentarily push or pull the switch all the way, and the window automatically rolls all the way down or up unless you quick press the switch again. Auto involves the door module, which detects the momentary push and then takes over with rolling the windows up/down - but it uses the HALL sensor to tell it to stop the window in case of obstruction, and if that is misbehaving, then it'll default to "safe" mode and not allow the window to roll up. Also, there is a full down and full up HALL limit sensor I think, that tells the door module when your window is all the way up or down, and the door module then turns off power to the window motor.