Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
:host {
padding: 4px 0;

deckgo-color {
pointer-events: all;
}
}

:host(.deckgo-tools-mobile) {
max-width: calc(100% - 54px);
--deckgo-overflow: scroll;
--deckgo-flex-wrap: nowrap;
--deckgo-color-width: 100%;
--deckgo-color-flex-wrap: nowrap;
--deckgo-color-width: fit-content;
pointer-events: all;
overflow: scroll;
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ div.deckgo-tools {

&.deckgo-tools-sticky,
&.deckgo-tools-mobile.deckgo-tools-sticky {
position: absolute;
position: fixed;

/**
* @prop --deckgo-inline-editor-sticky-bottom: The bottom attribute of the sticky toolbar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,23 +489,6 @@ export class DeckdeckgoInlineEditor {
}

await this.setStickyPositionIOS();

if (window) {
window.addEventListener(
'scroll',
async () => {
await this.setStickyPositionIOS();
},
{passive: true}
);
window.addEventListener(
'resize',
async () => {
await this.reset(true, true);
},
{passive: true}
);
}
});
}

Expand Down Expand Up @@ -815,7 +798,7 @@ export class DeckdeckgoInlineEditor {

await execCommand(this.selection, $event.detail, this.containers);

if ($event.detail.cmd === 'list') {
if ($event.detail.cmd === 'list' || isIOS()) {
await this.reset(true);
}

Expand Down