How to disable holding down left click to move?

When you hold down left click to move your party, it seems to repeatedly click which makes you able to hold down left click and move the mouse around to control your character. To be clear: I'd like to still be able to move with left click, but only have it click once - and then have to let go of the button before you're able to left click again.
In case it matters, this should also be the case with tapping on a phone where you can by default drag your finger around to move, but I assume they work the same so if the mouse click is changed so will the tapping?
There's lag associated with important movement plugins I use when you hold left click over certain things.
MZ v1.5.0
I think the easiest thing to do is this. Comment out the MouseMove/TouchMove or copy and replace your core code with what's below. I haven't seen any issues with this but only did slight testing.

RMMZ_Core.js line 6182
JavaScript:
TouchInput._setupEventHandlers = function() {
    const pf = { passive: false };
    document.addEventListener("mousedown", this._onMouseDown.bind(this));
    //document.addEventListener("mousemove", this._onMouseMove.bind(this));
    document.addEventListener("mouseup", this._onMouseUp.bind(this));
    document.addEventListener("wheel", this._onWheel.bind(this), pf);
    document.addEventListener("touchstart", this._onTouchStart.bind(this), pf);
    //document.addEventListener("touchmove", this._onTouchMove.bind(this), pf);
    document.addEventListener("touchend", this._onTouchEnd.bind(this));
    document.addEventListener("touchcancel", this._onTouchCancel.bind(this));
    window.addEventListener("blur", this._onLostFocus.bind(this));
};
I think the easiest thing to do is this. Comment out the MouseMove/TouchMove or copy and replace your core code with what's below. I haven't seen any issues with this but only did slight testing.

RMMZ_Core.js line 6182
JavaScript:
TouchInput._setupEventHandlers = function() {
    const pf = { passive: false };
    document.addEventListener("mousedown", this._onMouseDown.bind(this));
    //document.addEventListener("mousemove", this._onMouseMove.bind(this));
    document.addEventListener("mouseup", this._onMouseUp.bind(this));
    document.addEventListener("wheel", this._onWheel.bind(this), pf);
    document.addEventListener("touchstart", this._onTouchStart.bind(this), pf);
    //document.addEventListener("touchmove", this._onTouchMove.bind(this), pf);
    document.addEventListener("touchend", this._onTouchEnd.bind(this));
    document.addEventListener("touchcancel", this._onTouchCancel.bind(this));
    window.addEventListener("blur", this._onLostFocus.bind(this));
};
Thanks! It semi-works.
When you hold down left click and the screen moves on larger maps, it will "click" each time the mouse starts hovering over a new tile until you let go, or the screen stops moving from reaching the edge of the map. At least that's how I understood it from looking at it.

Edit:
My bad, it has nothing to do with where the mouse hovers after you start holding left click, as can be seen by moving the mouse around after holding left click. Just where you *started* holding left click (on that canvas?)
Try this plugin instead:
JavaScript:
/*:
 * @target MZ
 * @plugindesc Release touch to select a new destination.
 * @help Free to use and/or modify for any project, no credit required.
 */
void (alias => {
  Scene_Map.prototype.processMapTouch = function() {
    alias.apply(this, arguments);
    this._touchCount = 0;
  };
})(Scene_Map.prototype.processMapTouch);
Try this plugin instead:
JavaScript:
/*:
 * @target MZ
 * @plugindesc Release touch to select a new destination.
 * @help Free to use and/or modify for any project, no credit required.
 */
void (alias => {
  Scene_Map.prototype.processMapTouch = function() {
    alias.apply(this, arguments);
    this._touchCount = 0;
  };
})(Scene_Map.prototype.processMapTouch);
This seems to work.
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-disable-holding-down-left-click-to-move.151297/