|
@@ -144,7 +144,6 @@ function SmallVideo(VideoLayout) {
|
144
|
144
|
this.updateView = this.updateView.bind(this);
|
145
|
145
|
|
146
|
146
|
this._onContainerClick = this._onContainerClick.bind(this);
|
147
|
|
- this._onContainerDoubleClick = this._onContainerDoubleClick.bind(this);
|
148
|
147
|
}
|
149
|
148
|
|
150
|
149
|
/**
|
|
@@ -859,20 +858,6 @@ SmallVideo.prototype.updateIndicators = function() {
|
859
|
858
|
);
|
860
|
859
|
};
|
861
|
860
|
|
862
|
|
-/**
|
863
|
|
- * Callback invoked when the thumbnail is double clicked. Will pin the
|
864
|
|
- * participant if in tile view.
|
865
|
|
- *
|
866
|
|
- * @param {MouseEvent} event - The click event to intercept.
|
867
|
|
- * @private
|
868
|
|
- * @returns {void}
|
869
|
|
- */
|
870
|
|
-SmallVideo.prototype._onContainerDoubleClick = function(event) {
|
871
|
|
- if (this._pinningRequiresDoubleClick() && this._shouldTriggerPin(event)) {
|
872
|
|
- APP.store.dispatch(pinParticipant(this.id));
|
873
|
|
- }
|
874
|
|
-};
|
875
|
|
-
|
876
|
861
|
/**
|
877
|
862
|
* Callback invoked when the thumbnail is clicked and potentially trigger
|
878
|
863
|
* pinning of the participant.
|
|
@@ -882,8 +867,7 @@ SmallVideo.prototype._onContainerDoubleClick = function(event) {
|
882
|
867
|
* @returns {void}
|
883
|
868
|
*/
|
884
|
869
|
SmallVideo.prototype._onContainerClick = function(event) {
|
885
|
|
- const triggerPin = this._shouldTriggerPin(event)
|
886
|
|
- && !this._pinningRequiresDoubleClick();
|
|
870
|
+ const triggerPin = this._shouldTriggerPin(event);
|
887
|
871
|
|
888
|
872
|
if (event.stopPropagation && triggerPin) {
|
889
|
873
|
event.stopPropagation();
|
|
@@ -934,17 +918,6 @@ SmallVideo.prototype.togglePin = function() {
|
934
|
918
|
APP.store.dispatch(pinParticipant(participantIdToPin));
|
935
|
919
|
};
|
936
|
920
|
|
937
|
|
-/**
|
938
|
|
- * Returns whether or not clicking to pin the participant needs to be a double
|
939
|
|
- * click instead of a single click.
|
940
|
|
- *
|
941
|
|
- * @private
|
942
|
|
- * @returns {boolean}
|
943
|
|
- */
|
944
|
|
-SmallVideo.prototype._pinningRequiresDoubleClick = function() {
|
945
|
|
- return shouldDisplayTileView(APP.store.getState());
|
946
|
|
-};
|
947
|
|
-
|
948
|
921
|
/**
|
949
|
922
|
* Removes the React element responsible for showing connection status, dominant
|
950
|
923
|
* speaker, and raised hand icons.
|