GimpUi.SpinScale.prototype.set_constrain_drag

function set_constrain_drag(constrain: Boolean): void {
    // Gjs wrapper for gimp_spin_scale_set_constrain_drag()
}
  

If @constrain_drag is TRUE, dragging the scale with the pointer will only result into integer values. It will still possible to set the scale to fractional values (if the spin scale "digits" is above 0) for instance with keyboard edit.

constrain

whether constraining to integer values when dragging with pointer.