Detecting when the user starts and stop dragging a slider

I would like to know when the user has used a slider so that I can add his last changes to my undo system.

GUI.changed ; //any changes in GUI elements bellow this line will return true.