Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #51 from qlik-oss/heatmapExport
Browse files Browse the repository at this point in the history
fix:QB-374 disabling right click to limiting the result set for export in heat map chart
  • Loading branch information
sauravqlik authored Jan 7, 2020
2 parents 63bf748 + 2ba45a2 commit e1528ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/paint.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ function setupPaint({ $, qlik }) {
var lasso_start = function () {
// keep mouse cursor arrow instead of text select (auto)
$("#" + id).css('cursor', 'default');

// clear all of the fills
lasso.items()
.classed({
Expand Down Expand Up @@ -370,6 +369,10 @@ function setupPaint({ $, qlik }) {
};

var lasso_end = function (data) {
// disable selection from mouse right click
if(event && event.button === 2){
return false;
}
var selectedItems = lasso.items().filter(function (d) {
return d.selected === true;
});
Expand Down

0 comments on commit e1528ce

Please sign in to comment.