You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -641,14 +647,15 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
641
647
this.highlightModifier="altKey";
642
648
this.mouseDownHighlight(coords[0],"altKey");
643
649
}elseif(
644
-
TOUCH_ANALOGOUS_CTRLCLICK||
650
+
TOUCH_ANALOGOUS_RIGHTCLICK||
645
651
(d3.event.type=="dragstart"&&
646
652
window.MouseEvent&&
647
653
d3.event.sourceEventinstanceofMouseEvent&&
648
-
d3.event.sourceEvent.ctrlKey)
654
+
d3.event.sourceEvent.button===2&&
655
+
d3.event.sourceEvent.ctrlKey===false)// ctrlKey needed to be false, since in FireFox ctrlKey + click triggers button == 2 also (i.e. right-click)
649
656
){
650
-
this.highlightModifier="ctrlKey";
651
-
this.mouseDownHighlight(coords[0],"ctrlKey");
657
+
this.highlightModifier="rightClick";
658
+
this.mouseDownHighlight(coords[0],"rightClick");
652
659
}else{
653
660
this.highlightModifier="none";
654
661
this.mouseDownHighlight(coords[0],"none");
@@ -730,9 +737,11 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
730
737
// unnecessary check, but added to make it clear that if you wanted to add extra functionality to "simple gesture" mode, then you should handle things differently.
0 commit comments