Skip to content

Commit

Permalink
change mouseenter and mouseleave
Browse files Browse the repository at this point in the history
  • Loading branch information
LeosPrograms committed Oct 17, 2023
1 parent 53f78de commit a12ce89
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ui/src/converge/converge/Criteria/Criterion.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,13 @@ async function scrollToDiv() {

</div>

<div style="display: flex; flex-direction: column; margin-bottom: 16px; font-size: .8em">
<div style="display: flex; flex-direction: column; margin-bottom: 16px; font-size: .8em"
on:mouseenter={e => {
openSupport = true
}}
on:mouseleave={e => {
openSupport = false
}}>
{#if openSupport}
<div style="text-align: center; flex-direction: row; font-size: 1em">
<span style="white-space: pre-line;">How important is this criterion to you?</span>
Expand All @@ -332,9 +338,6 @@ async function scrollToDiv() {
addSupport()
}
}}
on:mouseleave={e => {
openSupport = false
}}
value={addSupportPercentage}
withTickMarks
discrete
Expand Down Expand Up @@ -365,9 +368,6 @@ async function scrollToDiv() {
IMPORTANT</span>
<mwc-slider
style="--mdc-theme-primary: blue;"
on:mouseover={e => {
openSupport = true
}}
value={mySupport * scoringLevel}
class="star-slider"
step="1"
Expand All @@ -386,9 +386,6 @@ async function scrollToDiv() {
IMPORTANT</span>
<mwc-slider
style="--mdc-theme-primary: blue;"
on:mouseover={e => {
openSupport = true
}}
disabled=true
value={addSupportPercentage}
class="star-slider"
Expand Down

0 comments on commit a12ce89

Please sign in to comment.