Have you tried the input
event instead of the change
event?
But be aware, that if you tie that together with Photoshop operations, it might cause some problems or delay (while the mouse is pressed down, or if the operation takes long to process):