2.255
Bearbeitungen
KMA (Diskussion | Beiträge) |
KMA (Diskussion | Beiträge) |
||
Zeile 48: | Zeile 48: | ||
var $this = $(this), | var $this = $(this), | ||
context = $this.data('context'), | context = $this.data('context'), | ||
activate = e.type == 'mouseover', | |||
li = $this.prop('tagName') == 'LI'; | li = $this.prop('tagName') == 'LI'; | ||
if (li) { // test visibility vis a vis scrolling | if (li && activate) { // in this case, we need to test visibility vis a vis scrolling | ||
var height = $this.height(), | var height = $this.height(), | ||
ol = $this.parent(), | ol = $this.parent(), | ||
Zeile 58: | Zeile 59: | ||
$this.toggleClass(liHighlightClass, activate); | $this.toggleClass(liHighlightClass, activate); | ||
context.clearRect(0, 0, context.canvas.width, context.canvas.height); | context.clearRect(0, 0, context.canvas.width, context.canvas.height); | ||
if (activate) { | |||
if ( | |||
drawMarker(context, $this.data('areas')); | drawMarker(context, $this.data('areas')); | ||
if ($.client.profile().name === 'msie') { // ie9: dimwit needs to be told twice. | |||
context.clearRect(0, 0, context.canvas.width, context.canvas.height); | |||
drawMarker(context, $this.data('areas')); | |||
} | |||
} | } | ||
} | } | ||