Capítulo 232 de 411

Chapter 232: Draggable.zIndex

Core Idea

Static number: the starting zIndex (default 1000) applied when a positional element (type:"x,y"/"top,left", not "rotation"/"scroll") is pressed, incremented for each newly-pressed element so the most recently touched one rises to the top.

Code Examples

Draggable.zIndex = 500; // change the default starting stack value

Key Takeaways

  1. Set zIndexBoost: false in a specific Draggable's vars to opt that instance out of this stacking behavior.

Connects To

  • Draggable (vars: zIndexBoost): per-instance override of this global default.