overte-thingvellir/scripts/system
LaShonda Hopper fe171af31b [Case 6491] entitySelectionTool mousePressEvent refactor/cleanup (details below).
Fixes situations where attempting to click on a rotate, grab,
or scale handle that was in front of others might unexpectedly
activate the obscured handle.

As of this commit the flow of mousePressEvent such that the
first item whether it be a tool or selection is what reacts
and absorbs the click/touch.  This is counter to the prior
behavior where whichever item or tool last passed the check
would determine what was hit and handled the touch _even_
when it wasn't the first thing to be touched.

* Got rid of some unused/stale vars
* Added some convenience functions
    * setRotationHandlesVisible function
    * setStretchHandlesVisible function
    * setGrabberMoveUpVisible function
* Removed checkIntersectWith helper functions as they're
  no longer used.
* Normalized onBegin signatures for all GrabberTools to
  support the new flow within mousePressEvent.
    * These are tools registered via addGrabberTool/makeStretchTool.
    * The onBegin signature changes from onBegin( event ) to
      onBegin( event, intersectResult ).
        * This allows for a simpler tool triggering where tools which
          utilized the additional information provided will have it,
          those which may need it the future shall have it with little
          issue, and those that don't care may ignore it.

NOTE(s):
* Tested normal movement within opening creation menu:  Passed
* With Creation Menu Open:
    * Tested clicking around the world in empty space: Passed
    * Tested single selection: Passed
    * Tested single selection rotation (pitch, yaw, roll): Passed
    * Tested single selection translation (xz, y): Passed
    * Tested multiple selection: Passed
    * Tested multiple selection rotation (pitch, yaw, roll): Passed
    * Tested multiple selection translation (xz, y): Passed

Reviewed-by: Leander Hasty <leander@1stplayable.com>

Changes Committed:
	modified:   scripts/system/libraries/entitySelectionTool.js
2017-09-28 15:04:27 -04:00
..
assets Add beeps 2017-06-24 14:26:01 +12:00
commerce Commerce: Tons of Interface changes (#11463) 2017-09-27 14:43:51 -07:00
controllers Merge pull request #11470 from sethalves/fix-grab-vs-trigger 2017-09-27 15:24:37 -07:00
html Merge pull request #11470 from sethalves/fix-grab-vs-trigger 2017-09-27 15:24:37 -07:00
libraries [Case 6491] entitySelectionTool mousePressEvent refactor/cleanup (details below). 2017-09-28 15:04:27 -04:00
marketplaces Commerce: Tons of Interface changes (#11463) 2017-09-27 14:43:51 -07:00
particle_explorer Change emitShouldTrail to emitterShouldTrail. 2017-08-18 15:10:58 -07:00
tablet-ui Merge pull request #11427 from ElderOrb/case7723 2017-09-26 22:05:45 -07:00
attachedEntitiesManager.js
audio.js Fix toolbar button activation states 2017-06-26 23:33:32 -07:00
audioMuteOverlay.js update JS with Audio.muted 2017-06-13 16:02:58 -04:00
audioScope.js added icons to the audioScope app 2017-03-10 18:13:35 -08:00
avatarFinderBeacon.js
away.js away.js - works better with sensor scale. 2017-09-05 17:34:35 -07:00
bubble.js Refactoring. 2017-09-08 17:58:16 +01:00
chat.js remove semi-colon 2017-07-31 08:02:18 -07:00
dialTone.js update JS with Audio.muted 2017-06-13 16:02:58 -04:00
directory.js
edit.js fixing entitySelectionTool 2017-09-27 10:52:56 -07:00
fingerPaint.js fixed typo in comments 2017-04-14 14:10:19 -07:00
firstPersonHMD.js
generalSettings.js Revert "Merge from upstream/master" 2017-03-28 17:39:45 -07:00
goto.js Close toolbar windows when scripts are reloaded 2017-03-08 21:44:04 +00:00
help.js a couple logging fixes 2017-08-14 17:34:32 -07:00
hmd.js 7385 - Collect Stats on "Exit VR" button 2017-09-05 21:26:35 +03:00
makeUserConnection.js Tip, Code Writer which comes standard with Windows 10, does enter tabs by default when using the tab key. >=) 2017-09-20 14:59:15 -07:00
menu.js Fix toolbar button activation states 2017-06-26 23:33:32 -07:00
mod.js
nameTag.js Revert "Actually merge from master" 2017-03-24 17:56:48 -07:00
notifications.js code review feedback 2017-09-20 09:21:15 -07:00
pal.js add flag to outline render flags, fix pal.js/edit.js interaction 2017-08-03 07:57:21 -07:00
progress.js fix reference to pending transfer count for progress/stats 2017-05-26 14:37:24 -07:00
snapshot.js Merge branch 'master' into modal_dialogs_async 2017-08-31 20:39:48 +02:00
tablet-goto.js 5830: Go-To menu shows up blank except for address bar 2017-08-23 23:27:02 +03:00
tablet-users.js Revert "Merge from upstream/master" 2017-03-28 17:39:45 -07:00
voxels.js Revert "Actually merge from master" 2017-03-24 17:56:48 -07:00