MAGN-1429 : Need snapping in inputs

This is the fix for port snapping issue. 

Today, the connector is not snapped to the ports automatically. Every time the user has to drag the connector on to the port and click the port to get an active connection.

After this Fix, When the connector is dragged near the port, it will get snapped to the port immediately. The connection will be showed as dotted lines, indicating the possible path to the port. When the port is clicked, the connection will be made active. 

http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-1429

- [ ] @pboyer 
- [ ] @Steell 
- [ ] @Benglin 
- [ ] @ikeough 
Looks github is quite sensitive to white space character and empty line. So if the code is not modified, then I'd suggest not add white space or empty line if possible so that reviewers can focus on real changes. I scanned these two lines twice and still not quite sure if there is a change or not. :-)