                     return
                 $(selector).css('text-decoration', 'underline')
                 $(selector).css('cursor', 'pointer')
-            @subAtom.add scrollViewElement, 'mouseout', eventSelectors, (event) =>
+                self.isHovering = true
+            @subAtom.add scrollViewElement, 'mouseout', hoverEventSelectors, (event) =>
                 selector = @getSelector(event)
                 if selector == null
                     return
                 $(selector).css('text-decoration', '')
                 $(selector).css('cursor', '')
-            @subAtom.add scrollViewElement, 'click', eventSelectors, (event) =>
+                self.isHovering = false
+            @subAtom.add scrollViewElement, 'click', clickEventSelectors, (event) =>
                 selector = @getSelector(event)
                 if selector == null || event.altKey == false
                     return
                 if event.handled != true
                     @gotoFromWord(editor, $(selector).text())
                     event.handled = true
+            editor.onDidChangeCursorPosition (event) ->
+                if self.isHovering == false
+                    return
+                markerProperties =
+                    containsBufferPosition: event.newBufferPosition
+                markers = event.cursor.editor.findMarkers markerProperties
+                for key,marker of markers
+                    for allKey,allMarker of allMarkers
+                        if marker.id == allMarker.id
+                            self.gotoFromWord(event.cursor.editor, marker.getProperties().class)
+                            break
 
     ###*
      * Gets the correct selector when a class or namespace is clicked.

GotoSelectView = require './goto-select-list-view.coffee'
{TextEditor} = require 'atom'
$ = require 'jquery'

module.exports =


    ###
    deactivate: () ->
        @subAtom.dispose()
        for key,marker of allMarkers
            marker.destroy()

    ###*
     * Goto the class the cursor is on
