Add scroll threshold

A value scroll threshold is added to give a larger window for click detection

However this hampers drag and zoom movement