# Timeout for Press and Hold Operations

You can add a timeout for press and hold operations on the client. This timeout prevents a press and hold operation from continuing indefinitely, which could occur if there is an interruption in communication between server and client.

## Setting

To add a timeout for press and hold operations on a client:

1. In the Project Explorer window, go to [System Architecture] and click [Target01].
2. In the Properties window, click [Advanced] tab and click [Data Access] tab.

3. Go to [Web Function Settings] ➞ [Web Viewer Settings] and set the following property.

[Touch Hold Timeout (sec)]
Set the amount of time to monitor for Press and Hold operations on a client. While a client continues a press and hold operation, the client periodically sends notifications to the server. If the server does not receive a notification within the set amount of time due to network failure or other reason, the server forces a release of the Press and Hold. This setting prevents unintended operation due to disruptions in communication between the server and client. Setting Value Range: 2 - 60 seconds

## User Operation

1. From a client, press and hold an object.
   If the server does not receive a notification that the client is continuing to press and hold within the time set in the [Touch Hold Timeout] property, the server forcibly releases the client's press and hold operation.

Important: For press and hold operations on a client, when the hold is released the initial touch trigger and touch release trigger are detected on the server. If, however, the [Touch Hold Timeout] elapses, the initial touch trigger is not detected although the touch release trigger is detected on the server.