Skip to content

Commit

Permalink
sub
Browse files Browse the repository at this point in the history
icons
  • Loading branch information
Weedshaker committed Aug 19, 2024
1 parent e6427cb commit 52141f6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/es/Environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ self.Environment = {
language: currentScriptUrl.searchParams.get('language') || document.documentElement.getAttribute('lang') || 'en',
stage: currentScriptUrl.searchParams.get('stage') || document.documentElement.getAttribute('stage') || 'alpha',
keepAlive: 86400000,
version: currentScriptUrl.searchParams.get('version') || document.documentElement.getAttribute('version') || '4.2.15', // https://semver.org/
version: currentScriptUrl.searchParams.get('version') || document.documentElement.getAttribute('version') || '4.2.16', // https://semver.org/
/**
* Get custom mobile breakpoint
* @param {{constructor?: string, tagName?: string, namespace?: string}} organism
Expand Down
5 changes: 3 additions & 2 deletions src/es/components/organisms/body/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class Body extends Shadow() {
} else {
this.removeAttribute('is-scrolled-bottom')
}
this.dispatchEvent(new CustomEvent('merge-active-room', {
if (this.hasAttribute('scroll-event-name')) this.dispatchEvent(new CustomEvent(this.getAttribute('scroll-event-name') || 'merge-active-room', {
detail: {
scrollTop: this.main.scrollTop
},
Expand All @@ -48,7 +48,8 @@ export default class Body extends Shadow() {
}
this.scrollIconShowEventListener = event => this.setAttribute('scroll-icon-has-show-event', '')
this.aScrollClickEventListener = event => {
this.mainScrollEventListener({detail: {}})
this.mainScrollEventListener({detail: {behavior: 'instant'}})
setTimeout(() => this.mainScrollEventListener({detail: {behavior: 'smooth'}}), 200)
if (this.hasAttribute('scroll-icon-only-show-on-event')) this.removeAttribute('scroll-icon-has-show-event')
}
}
Expand Down
1 change: 1 addition & 0 deletions src/img/icons/pencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/img/icons/trash-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/img/icons/trash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 52141f6

Please sign in to comment.