INNER CODE UNIT · JavaScript

width

jamebal/jmal-cloud-view · src/components/preview/artplayer-plugin-vtt-thumbnail/index.js:38

                        const width = $progress.clientWidth * percentage;
                        const second = percentage * art.duration;
                        setStyle($control, 'display', 'flex');

                        const find = thumbnails.find((item) => second >= item.start && second <= item.end);
                        if (!find) return setStyle($control, 'display', 'none');

                        if (width > 0 && width < $progress.clientWidth) {
                            showThumbnails($control, find, width);
                        } else {
                            if (!isMobile) {
                                setStyle($control, 'display', 'none');
                            }
                        }

                        if (isMobileDroging) {
                            clearTimeout(timer);
                            timer = setTimeout(() => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…