# Designing for Different Devices (Touch & Hover)

**URL:** <https://meta.discourse.org/t/designing-for-different-devices-touch-hover/367810>\
**Category:** Developer Guides\
**Created:** [2025年五月27日 18:17 UTC](https://meta.discourse.org/t/designing-for-different-devices-touch-hover/367810 "2025-05-27T18:17:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2025年八月29日 10:27 UTC](https://meta.discourse.org/t/designing-for-different-devices-touch-hover/367810/3 "2025-08-29T10:27:32Z")

</div>

如果在静态上下文中执行此操作，那么是的，这与即将推出的“基于视口的移动模式”（目前已禁用）不兼容。

如果像这样在自动跟踪上下文中执行检查：

```gjs
@service site;
...

<template>
  {{#if this.site.mobileView}}
    ...
  {{/if}}
</template>

```

那么 Ember 将在 mobileView 布尔值更改时（即浏览器大小调整时）自动重新渲染内容。所以没关系。

---

_[View the full topic](https://meta.discourse.org/t/designing-for-different-devices-touch-hover/367810)._
