Restore pointerMove in condition.js and example.

Wrongly removed on previous commit as pointed by @ahocevar.
This commit is contained in:
TigerShark
2019-10-27 11:45:53 -03:00
parent e60dc93e0e
commit 4f0431edd5
2 changed files with 15 additions and 4 deletions

View File

@@ -110,6 +110,19 @@ export const mouseActionButton = function(mapBrowserEvent) {
export const never = FALSE;
/**
* Return `true` if the browser event is a `pointermove` event, `false`
* otherwise.
*
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} True if the browser event is a `pointermove` event.
* @api
*/
export const pointerMove = function(mapBrowserEvent) {
return mapBrowserEvent.type == 'pointermove';
};
/**
* Return `true` if the event is a map `singleclick` event, `false` otherwise.
*