Add check for open submenu and add tolerance to x axis
Merge pull request #2 from bc-ong/addtolerance

Add check for open submenu and add tolerance to x axis