Skip to content

Conversation

@jeremysylee
Copy link
Contributor

No description provided.

… set and dynamically size accordingly. Selected image now stands out by maintaining expanded circle while selected
…moved giving a perceived delay to the user. The zoom should be instantaneous the moment the user clicks instead of having to wait to move the mouse before seeing the effect.

- Currently the onMouseMove triggers after the onClick event toggles a state that allows onMouseMove to activate.
- Refactoring to have the zoom enabled onClick instead of onMouseMove
    - Placed ternary condition on the onMouseMove to enable zoom only if zoomify state is true.
    - Onclick on the image toggles the zoomify state, but also either sets the zoom or resets the image to default based on the state.
    - This enables instant zoom on click from default with subsequent immediate activation of the onMouseMove so user gets an immediate zoom and can track the image as well.
…ze state. Refactoring to split style and size states to two separate states. Refactored, functions preserved.

Refactored quantity selector inside of AddToCart.jsx and sizeReducer.js. Quantity array now capped at 15 so max quantity selectable is 15.

Added a rudimentary alert. Not dynamic.
…Began to implement svg components to declutter code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant