Improve mouse handling for complex note shapes and reduce the number of change events being emitted.