Commit 9ab4a6e0 authored by Randall Leeds's avatar Randall Leeds

Restore heatmap click to close sidebar

parent e56fc92d
...@@ -34,6 +34,11 @@ class Annotator.Host extends Annotator.Guest ...@@ -34,6 +34,11 @@ class Annotator.Host extends Annotator.Guest
if @plugins.Heatmap? if @plugins.Heatmap?
this._setupDragEvents() this._setupDragEvents()
@plugins.Heatmap.element.on 'click', (event) =>
if @frame.hasClass 'annotator-collapsed'
this.showFrame()
else
this.hideFrame()
_setupXDM: (options) -> _setupXDM: (options) ->
channel = super channel = super
......
...@@ -71,7 +71,6 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin ...@@ -71,7 +71,6 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
event.stopPropagation() event.stopPropagation()
this._fillDynamicBucket() this._fillDynamicBucket()
@dynamicBucket = true @dynamicBucket = true
@annotator.showFrame()
$(window).on 'resize scroll', this._update $(window).on 'resize scroll', this._update
$(document.body).on 'resize scroll', '*', this._update $(document.body).on 'resize scroll', '*', this._update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment