FiratUsta / Chromora

A lightweight and fast color palette generator built using pure HTML, CSS & JS .
GNU General Public License v3.0
5 stars 3 forks source link

Color picker position bugs #2

Closed FiratUsta closed 12 months ago

FiratUsta commented 12 months ago

Y-Scroll Bug

Bug Description: On mobile layouts, if the page is scrolled enough that the color wheel is still visible, the color picker will move under the inputted position.

How To Replicate: Switch to the mobile layout, scroll the page down and click/tap on anywhere on the color wheel to move the picker.

Expected output: Picker moves to the clicked/tapped position.

Actual output: Picker moves below the clicked/tapped position.

Fix: Add the y-scroll of the page to the offset calculations.

Palette Import Bug

Bug Description: When importing a palette from a code, the color picker will not move to the correct position.

How To Replicate: Export a palette via code, move the picker and import the previous palette using the code.

Expected output: Picker moves to the position of the main color.

Actual output: Picker stays where it was previously.

Fix: Call the correct method during the import process.

FiratUsta commented 12 months ago

All bugs fixed as of 7058734f5fd21dd82f57202e93fe1dfe02f4d616