Enable crosshair cursor for hotspot select
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user