Add threshold before opening a menu