Skip to content

Commit 6061675

Browse files
committed
Docs: minor ipad changes
1 parent e496f57 commit 6061675

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/src/components/MobileMenu/MobileMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const createComponent = ({ tpl, settings, $, state, flush, afterFlush, dispatchE
133133
const el = $current.first().el();
134134
if (el) {
135135
const rect = el.getBoundingClientRect();
136-
console.log(rect);
136+
//console.log(rect);
137137
}
138138
},
139139

docs/src/components/NavMenu/NavMenu.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ a {
9292
text-transform: none;
9393
font-weight: bold;
9494
align-items: center;
95-
padding: var(--nav-menu-title-padding);
9695
text-decoration: none;
9796
color: var(--nav-menu-title-color);
9897

docs/src/content/lessons/111-introduction/example/component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const createComponent = ({ state }) => ({
6262
});
6363

6464
const events = {
65-
'mousemove .container'({ event, target, self, state, $ }) {
65+
'pointermove .container'({ event, target, self, state, $ }) {
6666
const rect = target.getBoundingClientRect();
6767
const width = $(target).width();
6868
const height = $(target).height();
@@ -71,8 +71,9 @@ const events = {
7171

7272
self.createWave(x, y);
7373
state.amplitude.set((y - state.yOffset.value) * 0.2);
74+
event.preventDefault();
7475
},
75-
'mouseleave .container'({ state }) {
76+
'pointerleave .container'({ state }) {
7677
state.waves.set([]);
7778
state.amplitude.set(0);
7879
},

0 commit comments

Comments
 (0)