ios 禁用滑动手势_如何禁用笔记本电脑上的Windows 8滑动手势?

ios 禁用滑动手势

ios 禁用滑动手势

If you’re not a fan of the touchpad-based swipe gestures in Windows 8 there is a way to completely disable them and reclaim your touchpad.

如果您不喜欢Windows 8中基于触摸板的滑动手势,可以使用一种方法来完全禁用它们并收回您的触摸板。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

问题 (The Question)

SuperUser reader Matsemann is less than thrilled with the swipe gestures on his Windows 8 laptop:

超级用户阅读器Matsemann对Windows 8笔记本电脑上的滑动手势感到非常兴奋:

I have an ASUS G75VW laptop with a Synaptic touchpad (/trackpad). When I move my finger from one edge towards the middle (the swipe), Windows 8 will bring up different stuff.

我有一台带有Synaptic触摸板(/触控板)的ASUS G75VW笔记本电脑。 当我将手指从一侧边缘移到中间(滑动)时,Windows 8会弹出不同的内容。

This is a problem because the area where I can actually move the mouse with my finger is too small (or, I mostly use the top left of the touchpad). So I often end up doing a swipe and bringing up some menu, or to do the swipe so slow that no menu is appearing but the mouse pointer is also not moving when I move my finger. Quite annoying.

这是一个问题,因为我实际上可以用手指移动鼠标的区域太小(或者,我通常使用触摸板的左上方)。 因此,我经常会做一次滑动并调出一些菜单,或者滑动得太慢以至于没有菜单出现,但是当我移动手指时鼠标指针也没有移动。 很烦人。

When swiping from left edge it earlier swapped apps like crazy. I disabled that, so now it only brings up the same menu as pressing win+tab (or some times the charms bar, I never know which). I could change that by:

从左边缘滑动时,它较早地交换了应用程序,就像疯了似的。 我禁用了它,所以现在它只显示与按win + tab相同的菜单(或者有时候按超级按钮,我不知道哪个菜单)。 我可以通过以下方式更改它:

Win+I → Change PC settings → General → When I swipe from the left edge, switch directly to my most recent app.

Win + I→更改PC设置→常规→从左边缘滑动时,直接切换到我最新的应用程序。

I’ve tried Mouse settings in Control Panel, driver settings for my touchpad and searching for swipe and gestures on my computer (which was what led me to the setting above) with no luck.

我尝试过“控制面板”中的“鼠标”设置,触摸板的驱动程序设置,并在计算机上搜索滑动和手势(这是导致我进入上述设置的原因),但没有运气。

How can I disable the swipe gestures, or change what they do?

如何禁用滑动手势或更改其功能?

We can certainly empathize, touchpads are fussy enough without extra functions layered on top of them.

我们当然可以理解,触摸板足够挑剔,没有附加的功能。

答案 (The Answer)

Several SuperUser contributors explained how they were able to disable the swipe gestures using various laptop-manufacturer provided tools, but contributor Daniel B. offers a registry-based solution that should work for any laptop with a synaptic touchpad:

几位SuperUser贡献者解释了他们如何使用笔记本电脑制造商提供的各种工具来禁用滑动手势,但是贡献者Daniel B.提供了一个基于注册表的解决方案,该解决方案适用于任何带有突触式触摸板的笔记本电脑:

Doing this involves editing the registry, it is recommended to do a manual system restore point before doing this.

这样做涉及编辑注册表,建议在执行此操作之前先进行手动系统还原

You will need to make a file called gestures.reg, open notepad and paste the following:

您将需要创建一个名为gestures.reg的文件,打开记事本并粘贴以下内容:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Right Edge Pull]
"ActionType"=dword:00000000
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Left Edge Pull]
"ActionType"=dword:00000000
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Right Edge Pull Extended Zone]
"ActionType"=dword:00000000
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Top Edge Pull]
"ActionType"=dword:00000000
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Right Edge Pull]
"ActionType"=dword:00000000
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Left Edge Pull]
"ActionType"=dword:00000000
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Right Edge Pull Extended Zone]
"ActionType"=dword:00000000
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Top Edge Pull]
"ActionType"=dword:00000000

Save this file somewhere, with the .reg extension.

使用.reg扩展名将该文件保存在某处。

Now run it, some warning boxes may come up, you will need to press Yes when they do, after the operation has finished, reboot your PC and they should now be disabled.

现在运行它,可能会出现一些警告框,当您这样做时,您需要按,在操作完成后,重新启动PC,现在应该将其禁用。



If you want to re-enable these gestures, then you will need to do the same but use the following text when saving the file:

如果要重新启用这些手势,则需要执行相同的操作,但是在保存文件时使用以下文本:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Right Edge Pull]
"ActionType"=dword:00000002
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Left Edge Pull]
"ActionType"=dword:00000002
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Right Edge Pull Extended Zone]
"ActionType"=dword:00000002
[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2\Top Edge Pull]
"ActionType"=dword:00000002

If you’d like to disable specific gestures or otherwise edit the swipe gestures, it’s recommended to do so via manufacturer supplied software tools. Check out the full discussion at SuperUser for insights from other contributors into individual laptops.

如果您想禁用特定手势或以其他方式编辑滑动手势,建议通过制造商提供的软件工具进行操作。 查看SuperUser上的完整讨论,以了解其他撰稿人对单个笔记本电脑的见解。

翻译自: https://www.howtogeek.com/135507/how-can-i-disable-windows-8-swipe-gestures-on-my-laptop/

ios 禁用滑动手势

iOS 开发中,嵌套在 `UIScrollView` 中的 `UITableView` 在滑动时可能会与 `UIScrollView` 的滑动手势产生冲突,导致无法正常滑动。这个问题可以通过以下两种方式解决: 1. 禁用 `UIScrollView` 的滑动手势 可以通过设置 `UIScrollView` 的 `panGestureRecognizer` 的 `enabled` 属性为 `NO` 来禁用滑动手势,这样就不会与 `UITableView` 的滑动手势产生冲突了。 ```objc scrollView.panGestureRecognizer.enabled = NO; ``` 2. 实现 `UIGestureRecognizerDelegate` 协议的方法 在 `UIViewController` 中实现 `UIGestureRecognizerDelegate` 协议的 `gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:` 方法,可以控制两个手势是否允许同时识别。在这个方法中,可以判断当前的手势是否为 `UIScrollView` 的滑动手势,如果是,则允许与 `UITableView` 的滑动手势同时识别,否则不允许。 ```objc - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { if ([gestureRecognizer.view isKindOfClass:[UIScrollView class]] && [otherGestureRecognizer.view isKindOfClass:[UITableView class]]) { return YES; } return NO; } ``` 需要注意的是,在实现这个方法时,要将 `UIScrollView` 的 `delegate` 设置为当前的 `UIViewController`,否则这个方法不会被调用。 ```objc scrollView.delegate = self; ``` 以上两种方式都可以解决嵌套在 `UIScrollView` 中的 `UITableView` 滑动手势冲突的问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值