The cancel button does not spend the scroll in this case, as the game isn’t revealing any info the player shouldn’t be able to know beforehand. Cancel will kick you back to selecting an item, which will only force-use the scroll if it wasn’t already IDed.
Yep, exactly that.