-Properly prevent default actions on events to avoid highlighting parts
of webpage while using the grapher