Enable crosshair cursor for hotspot select

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-10-28 15:25:38 -07:00
parent e77e8b85df
commit 6905e1310f

View File

@@ -9,6 +9,7 @@ readyAddHotspot = function() {
previewMv.one('click', clickAddHotspot)
previewMv.addClass('AddingHotspot')
previewMv[0].disableTap = true
previewMv[0].toggleAttribute('camera-controls')
}
/**
@@ -25,6 +26,7 @@ clickAddHotspot = function(e) {
let hsPosition = null
let targetModel = previewMv[0]
targetModel.disableTap = false
targetModel.toggleAttribute('camera-controls')
if (targetModel) {
hsPosition = targetModel.positionAndNormalFromPoint(e.clientX, e.clientY)
}