If you wish to disable it on galleries - maybe because you want to use another jquery plugin or you just don't want it - here is what to do:
Edit function.php and change line 70 (version 1.1.9) from
HTML Code:
$is_gallery = 1;
HTML Code:
$is_gallery = 0;