Assorted missing requires
This commit is contained in:
@@ -148,7 +148,8 @@ ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) {
|
||||
* @private
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.resetClickCount_ = function() {
|
||||
this.resetId_ = ol.global.setTimeout(
|
||||
var global = ol.global;
|
||||
this.resetId_ = global.setTimeout(
|
||||
this.resetClickCountHandler_.bind(this),
|
||||
ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT);
|
||||
};
|
||||
@@ -167,8 +168,9 @@ ol.pointer.TouchSource.prototype.resetClickCountHandler_ = function() {
|
||||
* @private
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.cancelResetClickCount_ = function() {
|
||||
var global = ol.global;
|
||||
if (this.resetId_ !== undefined) {
|
||||
ol.global.clearTimeout(this.resetId_);
|
||||
global.clearTimeout(this.resetId_);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -440,7 +442,8 @@ ol.pointer.TouchSource.prototype.dedupSynthMouse_ = function(inEvent) {
|
||||
var lt = [t.clientX, t.clientY];
|
||||
lts.push(lt);
|
||||
|
||||
ol.global.setTimeout(function() {
|
||||
var global = ol.global;
|
||||
global.setTimeout(function() {
|
||||
// remove touch after timeout
|
||||
ol.array.remove(lts, lt);
|
||||
}, ol.pointer.TouchSource.DEDUP_TIMEOUT);
|
||||
|
||||
Reference in New Issue
Block a user