Fix up/down scroll for curve shape.

Fixes #9374.